01-07-2011
in other words i am looking for a way to see if a machine has been on for a certain amount of time
i thought maybe uptime would be a good place to start
if you have another way that would be great
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Folks
uptime
12:24pm up 2 days, 3:12, 4 users, load average: 0.00, 0.00, 0.00
what does the load average figure mean..
regards
Hrishy (2 Replies)
Discussion started by: xiamin
2 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to get the uptime of my computer (Mac OS X) and I can go into the terminal and type "uptime" OK, and that gives me a string with the uptime in it. The problem is that the string changes a lot, and its very difficult to get the data I'm trying to extract out cleanly.
Now I have 3... (2 Replies)
Discussion started by: Freefall
2 Replies
3. UNIX for Dummies Questions & Answers
On HP-UX, the 13th argument of uptime is sometime the load and sometime the word AVERAGE:???
14 Jun 06 5:00pm up 44 days, 54 mins, 0 users, load average: 0.00, 0.02, 0.03
14 Jun 06 5:15pm up 44 days, 1:09, 0 users, load average: 0.00, 0.01, 0.01
When the time is in minutes, then the load... (1 Reply)
Discussion started by: qfwfq
1 Replies
4. UNIX for Dummies Questions & Answers
hello folks!
how can I display just the uptime without the current time, the word "up", and the load averages using the uptime command or some other command I do not know about? (13 Replies)
Discussion started by: MastaFue
13 Replies
5. Shell Programming and Scripting
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies
6. Ubuntu
Hello Everyone,
First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you !
I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Discussion started by: cdt
3 Replies
7. Programming
I need to get, in my application, in different methods, the uptime of the system in milliseconds.
time() - returns only seconds.
/proc/uptime - returns the seconds + a truncated milliseconds value, but it need to be parsed to extract data and convert it to milliseconds
Any other suggestions ? (6 Replies)
Discussion started by: Pufo
6 Replies
8. War Stories
Hi All,
Having recently started a new job, a Data Center Migration in fact I have been tasked with looking at some of the older Solaris boxes when I came across this little gem.
nismas# uname -a
SunOS nismas 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
nismas# uptime
10:37am up 2900... (2 Replies)
Discussion started by: gull04
2 Replies
LEARN ABOUT DEBIAN
uptimed
UPTIMED(8) System Manager's Manual UPTIMED(8)
NAME
uptimed - daemon to record uptime records
SYNOPSIS
uptimed [ -?bv ] [ -e <email> ] [ -i <interval> ] [ -m <count> ]
DESCRIPTION
This manual page documents the uptimed program.
uptimed is a daemon that records statistics about a machine's uptime. Use the uprecords(1) program to get uptime record statistics.
OPTIONS
These command-line options override settings in the configuration file /etc/uptimed.conf
-? Show usage
-b Create bootid and exit. This option is ignored on BSD systems, because the BSD kernel keeps a static boot time variable in memory so
Uptimed does not need to cache this value.
-p <file>
Write PID to pidfile <file>
-e <email>
Send mail to <email> at milestones/records
-i <interval>
Use <interval> seconds for loop
-m <count>
Log a maximum of <count> entries
-t <timespec>
Set the minimum uptime to be considered a record
-v Show version information
SEE ALSO
uprecords(1)
AUTHOR
Rob Kaper <cap@capsi.com>.
This manual page was written by Alan Ford <alan@whirlnet.co.uk>, for the Debian GNU/Linux system (but may be used by others). It was last
modified for uptimed version 0.3.7.
May 28, 2004 UPTIMED(8)