Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the format of the uptime output

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
US
Hello,

I'm on - SunOS badap10t 5.10 Generic_150400-68 sun4v sparc sun4v and I would like to convert the output of uptime -
uptime
7:31pm up 62 day(s), 2:34, 1 user, load average: 10.61, 9.61, 9.77

To -

Thursday, April 2, 2020 07:32:11 PM EDT SystemUpTime=xxxxx

where xxxxx is the number of seconds since the server came up.

Is it possible?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top