LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices

Reply
 
Search this Thread
Old 06-15-2005, 09:39 AM   #1
uppala
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.
cheers
...ram
 
Old 06-15-2005, 09:43 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

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
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
GKrellM
http://members.dslextreme.com/users/...m/gkrellm.html
 
  


Reply


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 07:41 AM.

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