Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Controlling Serverside process (noob alert)

  • 17-08-2005 09:42PM
    #1
    Closed Accounts Posts: 3,354 ✭✭✭


    I have a webserver (99% sure its apache) which resides upon Aix. My problem is that I want users to be able to control some of the functions on the server via a web page of some sort.

    My actual problem is I want the users to be able to enable their own printers to save me having to do it. A bonus would be if they were able to view a web page that lists the status of all the printers/queues. These are simple print queues that respond to lpstat and lpq -P <printer> commands.

    Now Im a reasonable programmer but have never been near anything web based. Can someone point me in the right general direction?

    In summary click on link/object to execute an enable <printername> command.

    Optionally a page that polls printer status' with lpq -P or lpstat.

    In terms of what I have available to code with - dhtml or java (would like to avoid unless its really simple - I dont have time to learn enough) dont think I have python or anything. Only really need the code to trigger an action - I could do the rest in a shell script.


Comments

  • Registered Users, Registered Users 2 Posts: 1,569 ✭✭✭maxheadroom


    I have a webserver (99% sure its apache) which resides upon Aix. My problem is that I want users to be able to control some of the functions on the server via a web page of some sort.

    My actual problem is I want the users to be able to enable their own printers to save me having to do it. A bonus would be if they were able to view a web page that lists the status of all the printers/queues. These are simple print queues that respond to lpstat and lpq -P <printer> commands.

    Now Im a reasonable programmer but have never been near anything web based. Can someone point me in the right general direction?

    In summary click on link/object to execute an enable <printername> command.

    Optionally a page that polls printer status' with lpq -P or lpstat.

    In terms of what I have available to code with - dhtml or java (would like to avoid unless its really simple - I dont have time to learn enough) dont think I have python or anything. Only really need the code to trigger an action - I could do the rest in a shell script.

    If you use CUPS it already has a built in web admin panel....


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Sorry, no java here, but surely perl is on the machine? If so, someone in Unix would be able to help you out (my perl's a bit rusty tbh.)

    DHTML isn't a programming language by the way, it's a codename for Javascript used for presentation. Although strictly speaking you can use Javascript on the server side, it's not something I'd recommend. :)

    adam


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    AIX? *blinks in horror*

    Anyway, yes, CGI in Perl or even a shell script language would be easy enough.

    print "Content-type:text/html\n\n";
    <do stuff>


Advertisement