But the array index might be wrong as I dont know what uptimes output looks like.print "Server rebooted in last 24 hours" if (split/\s+/,`uptime`)[3]<1;
Yves / DeMerphq
--
When to use Prototypes?
Advanced Sorting - GRT - Guttman Rosler Transform
In reply to Re: system commands
by demerphq
in thread system commands
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |