Hi all,
I thought i had my head around system calls. I try sticking a
system call to get the systems uptime into a variable and all i get out of
it when i look at it from the web in my cgi-bin is "0!"
Any suggestions?
Thanks
David Freeman
#!/usr/bin/perl
# Sample script to display a server uptime
# author: David Freeman
#
$uptime = system ("/usr/bin/uptime");
print "Content-type: text/html\n\n";
print "<html>\n";
print "<body>\n";
print "<h1>$uptime!</h1>\n";
print "</body></html>\n";
~
- Re: System call to print to webpage David Freeman
- Re: System call to print to webpage _brian_d_foy
