In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (David Freeman) wrote:
> $uptime = system ("/usr/bin/uptime");
you want to save the output, so use backticks.
my $uptime = `/usr/bin/uptime`;
--
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CG
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 displa