Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is proboably easy for most, but as i have very little knowledge i was hoping one of you might be able to help. I want to split up the values returned by the command 'uptime' and put them into seperate values.
Say '10:03pm up 3 days, 9:27, 1 user, load average: 0.00, 0.00, 0.00' is the returned value by running the command. i would like it split it up into Time, Uptime (up 3 days, 9:27), Current Users and CPU Load.
Thanks
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uptime
by Zaxo (Archbishop) on Aug 18, 2002 at 21:37 UTC | |
by sauoq (Abbot) on Aug 18, 2002 at 22:03 UTC | |
|
Re: Parsing 'uptime' output
by rob_au (Abbot) on Aug 19, 2002 at 00:58 UTC | |
by sauoq (Abbot) on Aug 19, 2002 at 01:29 UTC | |
by blakem (Monsignor) on Aug 19, 2002 at 08:32 UTC | |
by sauoq (Abbot) on Aug 19, 2002 at 15:00 UTC | |
by blakem (Monsignor) on Aug 19, 2002 at 16:19 UTC | |
| |
|
Re: Parsing 'uptime' output
by BrowserUk (Patriarch) on Aug 19, 2002 at 02:03 UTC | |
by Aristotle (Chancellor) on Aug 19, 2002 at 04:22 UTC | |
by BrowserUk (Patriarch) on Aug 19, 2002 at 05:08 UTC | |
|
Re: Uptime
by Anonymous Monk on Aug 18, 2002 at 21:11 UTC |