LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   clock -w on solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/clock-w-on-solaris-296387/)

qtrob 03-01-2005 03:29 PM

clock -w on solaris
 
How do I write the clock to the CMOS on solaris?

The 'clock' utility looks like a general clock, where 'clock -w' does not work,

where I am familiar with it working on Linux.

jlliagre 03-02-2005 11:51 AM

I believe there's no such command with Solaris, as setting the system time with date (settimeofday/adjtime) is AFAIK synchronizing the H/W clock too.

qtrob 03-02-2005 11:58 AM

AFAIK
 
what does AFAIK mean? (As far as I know? )

qtrob 03-02-2005 11:59 AM

Example
 
Can you give me an example of a valid command, I want to make sure I'm not missing anything.

Note: At reboot, the time goes back to the previous time.

jlliagre 03-02-2005 03:09 PM

Quote:

what does AFAIK mean? (As far as I know? )
IIRC, yes ;)

Quote:

Can you give me an example of a valid command, I want to make sure I'm not missing anything.
Note: At reboot, the time goes back to the previous time.
This is strange, never had such problem. Sure this is happening only with Solaris ? Is your CMOS battery OK ?

There's no Solaris specific way to set the time, e.g.:
# date 03022109

Actually, I use ntp to sync my clock, but of course this doesn't work when unconnected.

]un]ie 03-03-2005 04:42 AM

AFAIK......:p

this...i must add to my list of "learning new terms daily"

:p :D :D :D


All times are GMT -5. The time now is 06:44 AM.