Sponsored Content
Operating Systems HP-UX I want to get machine boot up time Post 302308066 by pludi on Friday 17th of April 2009 03:20:10 AM
Old 04-17-2009
That's strange. I just fed it to our HP-UX 11.31 (IA64), using Perl 5.8.8, and it works correctly.
Code:
$ uptime
  9:14am  up 156 days, 20:52 ...
$ uptime | \
perl -ne '/.*up (\d+) days, +(\d+):(\d+),.*/; $total=((($1*24+$2)*60+$3)*60);
$now=time(); $now-=$total; $now=localtime($now); print $now,"\n";'
Tue Nov 11 11:21:43 2008

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Triple Boot Machine

I'm in a predicament right now! I have RedHat 7.2 ,Debian 2.2r5 ,and Windows ME. I am currently in a Sun Solaris 8 class and will soon acquire a copy of Solaris 8. I would like to start a small home network ,but 4 pc's for the house would be a little too expensive for me right now. What I was... (4 Replies)
Discussion started by: bilal_aa
4 Replies

2. UNIX for Dummies Questions & Answers

Cannot boot machine

I have a sun v240 running solaris 9. I recently changed the ip via the ifconfig command but made a mistake when running the command: ifconfig bge0 (ip address) netmask (ip address) when i meant to do: ifconfig bge0 (ip address) netmask ffff0000 broadcast (ip address) Now when I boot the... (4 Replies)
Discussion started by: GLJ@USC
4 Replies

3. Solaris

Sun machine boot up

Hi I am trying to bring up our Sun V100 machine remotely using hyper terminal. We have connected LOM port A to COM1 of our windows server and have lom promt available. Now when we type poweron it starts booting and goes through the booting process and stops at the following step... .... ... (7 Replies)
Discussion started by: chimpu
7 Replies

4. Shell Programming and Scripting

How do I Start JBoss automatically when boot my linux machine.

I have created a script file named 'start-jboss' ------------------------------------------------- #!/bin/sh # For starting Jboss JAVA_HOME=/home/argole/jdk/jdk1.6.0_10 export JAVA_HOME cd /home/argole/server/jboss-4.2.0.GA/bin echo "Starting JBOSS server" nohup ./run.sh -c... (25 Replies)
Discussion started by: shiraz
25 Replies

5. UNIX and Linux Applications

How do I Start postgre SQL automatically when boot my linux machine

Can any body give me the script to start postgre SQL 8.3.1 when boot linux? (2 Replies)
Discussion started by: shiraz
2 Replies

6. Ubuntu

What time did Ubuntu installed on machine?

How can I learn what time OS installed time and release information. (4 Replies)
Discussion started by: getrue
4 Replies

7. Solaris

After command setenv auto-boot false machine's console not displaying

hi Alll, I want to install solaris 10 on exixting solaris mahcine. I tried for OK boot cdrom-install but it gave me fatal error - disk not bootable , boot command disable so i tried with ok setenv auto-boot? false Ok reset-all after this server rebooted automatically and... (2 Replies)
Discussion started by: sunray
2 Replies

8. UNIX for Dummies Questions & Answers

CentOS machine does not boot!

Hello, one of my machine ,does not boot! check the pic and kindly help! Thx in advance! (0 Replies)
Discussion started by: ahmedamer12
0 Replies
RUPTIME(1)						    BSD General Commands Manual 						RUPTIME(1)

NAME
ruptime -- show host status of local machines SYNOPSIS
ruptime [-alrtu] [host ...] DESCRIPTION
The ruptime utility gives a status line like uptime(1) for each machine on the local network; these are formed from packets broadcast by each host on the network once every three minutes. If no operands are given, ruptime displays uptime status for all machines; otherwise only those hosts specified on the command line are dis- played. If hosts are specified on the command line, the sort order is equivalent to the order hosts were specified on the command line. Machines for which no status report has been received for 11 minutes are shown as being down, and machines for which no status report has been received for 4 days are not shown in the list at all. The options are as follows: -a Include all users. By default, if a user has not typed to the system for an hour or more, then the user will be omitted from the output. -l Sort by load average. -r Reverse the sort order. -t Sort by uptime. -u Sort by number of users. The default listing is sorted by host name. FILES
/var/rwho/whod.* data files SEE ALSO
rwho(1), uptime(1), rwhod(8) HISTORY
A ruptime utility appeared in 4.2BSD. BSD
March 1, 2003 BSD
All times are GMT -4. The time now is 06:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy