Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Okay here is my unix script for checking uptime:
1. How would perl handle this (especially the awk part)??
2. How and what command in Perl would be used on an NT to determine when a server was last rebooted??
Two questions:uptime | awk '{if ( $3 < 1 ) print "Server rebooted in last 24 hours"}
1. How would perl handle this (especially the awk part)??
2. How and what command in Perl would be used on an NT to determine when a server was last rebooted??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: system commands
by gellyfish (Monsignor) on Mar 08, 2002 at 14:17 UTC | |
by demerphq (Chancellor) on Mar 08, 2002 at 14:19 UTC | |
by ChOas (Curate) on Mar 08, 2002 at 14:24 UTC | |
by Juerd (Abbot) on Mar 08, 2002 at 14:19 UTC | |
Re: system commands
by grummerX (Pilgrim) on Mar 08, 2002 at 15:13 UTC | |
Re: system commands
by demerphq (Chancellor) on Mar 08, 2002 at 14:16 UTC | |
Re: system commands
by rdfield (Priest) on Mar 08, 2002 at 15:02 UTC |
Back to
Seekers of Perl Wisdom