LinuxQuestions.org
Help answer threads with 0 replies.
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, 10: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, 10:43 AM   #2
rose_bud4201
Member
 
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 08:42 AM.
 
Old 06-15-2005, 10:45 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,906
Blog Entries: 29

Rep: Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537
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 03:28 PM
uptime shows 3 users on system when there is only me. Is this normal? MichaelD Linux - Security 3 05-22-2005 12:05 AM
How to get System UpTime using C program ? D M Mehta Programming 1 02-25-2004 02:47 AM
uptime system call ?? Agent007 Programming 4 01-10-2004 05:31 AM
SYSINFO for Linux.... lnxkido Linux - Newbie 4 11-19-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration