View Single Post
Old 09-29-2016, 07:57 PM   #254
Alan_S
Evangelist
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
Quote:
Originally Posted by tshering View Post
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...).

Last edited by Alan_S; 09-29-2016 at 08:05 PM.
Alan_S is offline   Reply With Quote