Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hi, should be quick and simple for you lot. I want to build a perl script that can activate a program or batch file on the SERVER. I am using apache and a simple 2pc lan, using win98. All it needs to do is run a batch file or program on the server pc when a button is clicked on the web page on the client. hope you can help, i really have looked everywhere for this but theres so much stuff everywhere its bogging me down !thanks

Replies are listed 'Best First'.
Re: remote application starting
by helphand (Pilgrim) on Feb 26, 2006 at 20:16 UTC

    If I understand correctly, you are running apache on a win98 box and want to be able to initiate a process on that same box by clicking on a web page.

    You don't mention much about what the program is you want to run, but assuming it is a relatively short-lived process, you could simply create a cgi script that uses the system command to execute the program.

    Scott

      yep, thats what i want. using some sense and control kit and want to control it wirelessly using a web page and a small perl script and a set of dos programs. i cant find any information on syntax though for this command.
        could anyone post the line of code i would need to run this program? it's called lptout.exe and resides in my cgi-bin folder. It takes command line parameter -XXX where x is a decimal digit. this would really help, i cant find any examples on the net!