LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-07-2012, 03:31 AM   #1
rambolinuxbuddy
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
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Lightbulb

Try hwclock as root & you should be set.

Quote:
NAME
hwclock - query or set the hardware clock (RTC)

SYNOPSIS
hwclock [function] [option...]

DESCRIPTION
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).



 
  


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
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 05:53 PM.

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