The answer to your firsts question is something like :
The answer to your second question is simply :#!/usr/bin/perl -w use strict; my @uptime = split ' ', `uptime`; print "Server rebooted in last 24 hours" if ( $uptime[2] < 1 );
print "Server rebooted in last 24 hours"
/J\
In reply to Re: system commands
by gellyfish
in thread system commands
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |