Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
MEPIS This forum is for the discussion of MEPIS Linux.


  Search this Thread
Old 06-15-2005, 09:39 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
is there any fun() available in linux to find system uptime without using sysinfo

my requirement is to get the system uptime in seconds. But the sysinfo() system call tyrs to get other details (i.e raminfo available ..... like this some other details). So is there any other system call available that just returns me system uptime in seconds .. pls let me know.

thanks in advance.
Old 06-15-2005, 09:43 AM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Try 'uptime'. It's not in seconds though, it's in hours.

Last edited by rose_bud4201; 06-16-2005 at 07:42 AM.
Old 06-15-2005, 09:45 AM   #3
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Uptime' system load averages miknight Linux - General 14 01-30-2008 02:28 PM
uptime shows 3 users on system when there is only me. Is this normal? MichaelD Linux - Security 3 05-21-2005 11:05 PM
How to get System UpTime using C program ? D M Mehta Programming 1 02-25-2004 01:47 AM
uptime system call ?? Agent007 Programming 4 01-10-2004 04:31 AM
SYSINFO for Linux.... lnxkido Linux - Newbie 4 11-19-2003 05:51 PM

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration