Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-07-2012, 03:31 AM   #1
LQ Newbie
Registered: Sep 2012
Posts: 16

Rep: Reputation: Disabled
alternative command of stime()

hello all,

my embedded system does not seem to have stime() (to set the system time).
So anybody have idea of any alternative command to stime().
C command is preferred.

Hoping for quick reply.

thank you.
Old 09-07-2012, 04:34 AM   #2
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103

Try hwclock as root & you should be set.

hwclock - query or set the hardware clock (RTC)

hwclock [function] [option...]

hwclock is a tool for accessing the Hardware Clock. You can display
the current time, set the Hardware Clock to a specified time, set the
Hardware Clock from the System Time, or set the System Time from the
Hardware Clock.

You can also run hwclock periodically to add or subtract time from the
Hardware Clock to compensate for systematic drift (where the clock con-
sistently loses or gains time at a certain rate when left to run).



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
lsof command alternative zeusys Linux - Newbie 2 09-04-2011 05:59 PM
need script to kill process based on STIME wilmomd Linux - General 5 03-12-2010 10:22 AM
Alternative to the script command ... ??? newbie01.linux Linux - Security 2 10-12-2009 10:20 AM
Alternative command for ls --full-time atul_sp Linux - General 3 01-18-2008 04:23 PM
QUOTA Command alternative? Echo Kilo Linux - General 1 11-15-2004 01:26 AM

All times are GMT -5. The time now is 02:07 AM.

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