LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 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
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

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


Reply



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

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

All times are GMT -5. The time now is 02:43 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