UNIX commands inside perl script.

by "Grant Peel" <tracker(at)home.com>

 Date:  Tue, 14 Mar 2000 09:35:08 -0500
 To:  "HWG - Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Hello everyone!

A quick queston for anyone who knows perl well.

How do I call a system (UNIX BSDI) command from inside a perl script and
have it display back in the browser?

Example..inside an html page, shtml actually, i have an SSL command:

 <!--#EXEC CGI="/cgi-bin/command.cgi"-->

then, in the command.cgi, i have something like:

#!/usr/bin/perl5

print "Content-type: text/html\n\n";
print "Current Server Processes:\n\n";
print | exec('ps x -u');


The idea is t be able to show the current server processes from a web page.

Any Ideas?

TIA,
-Grant

Grant W. Peel
The Net Now Internet Services - info(at)thenetnow.com
Member:
HTML Writers Guild
International Webmasters Association

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA