Lightning flashed, thunder crashed and "Ackim Chisha" <[EMAIL PROTECTED]> whis
pered:
| Now I need to display the output of a system command to HTML. It can't =
| seem to work I don't know why. Here is what am trying to do,
|
| Am running the following command,
|
| $command =3D 'pgp -kv' ;
|
|
I don't use Perl for Administration, and have not run too much other than
CGI apps, but you may want to try:
#Your code here
$command = 'pgp -kv' ;
#pass the returned value to an array
@Commands = system($command) ;
#Display the code in a nice table
print qq|COMMANDS|;
#iterate through the A