Quote:
Originally Posted by tshering
I guess this should work:
Code:
#!/bin/sh
date "$*" 2>/dev/null && hwclock -w -u
I am unable to test it now.
|
How should I run this script (let's call it settime)?
./settime 20:44:21
This from terminal? Where should I put script in that case (what directory)? Please, advise on best way to create and run this script.
Also, maybe to include something like this in KSM? I see date options in KSM, but for some reason they don't work for me.
And thanks for code, can't karma your posts at the moment (did it too much before...).