in reply to system commands
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\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: system commands
by demerphq (Chancellor) on Mar 08, 2002 at 14:19 UTC | |
by ChOas (Curate) on Mar 08, 2002 at 14:24 UTC | |
|
Re: Re: system commands
by Juerd (Abbot) on Mar 08, 2002 at 14:19 UTC |