On Wed, 18 Jul 2001, Westlake, Andy wrote:
> I have written a short perl script to report disk usage on our various
> systems at our site. What I would like to do is run the script from a page
> on our intranet and get the feedback back. Now I can do this using rsh but
> I am sure there is a way of doing it in perl. So any ideas please?
I am going to assume you mean a script that runs on a particular machine
which you are also using as a webserver. If that is the case, you just
need to adapt your existing script to be a cgi script:
* Have a web page with a link or form submission ( depending on whether
you want to offer your users options for the script ) to the script
* At the start of the script extract any user input
* Next run the existing code and capture its results in variables
* Build an output page including those variables
You will probably find CGI.pm useful, both for extracting any input and
building the output.
Don't forget: use warnings, taint and strict :)
Best wishes,
Rachel Coleman
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]