Automatic Set-Time script (can be used with CRON)

Posted by: Admin

Automatic Set-Time script (can be used with CRON) - 05/08/13 07:49 AM

Automatic Set-Time script (can be used with CRON) in Python (OE1.6/2.x)

IPK to install, and use SetTime.sh script in /usr/script,

Example of command in CRON to set the time every hour :
* */1 * * * /var/script/SetTime.sh

Admin

Code:
Per quanto riguarda i cron, forse lo sai ma te lo scrivo ugualmente: 
fai crontab -l > pippo.txt Editi pippo.txt (con vi o come ti pare), poi per 
i parametri del cron, direttamente da wikipedia:

# I------------- min (0 - 59)
# I I-------------- hour (0 - 23)
# I I I--------------- day of month (1 - 31)
# I I I I---------------- month (1 - 12)
# I I I I I----------------- day of week (0 - 6) (0 to 6 are Sunday to 
# I I I I I                  Saturday, or use names; 7 is Sunday, the same as 0)
# I I I I I
# * * * * * command to execute 

30 22 * * 6 (= esempio)
= Vuol dire che il tuo comando girera alle 22:30 di tutte i sabati...
Posted by: kikan

Re: Automatic Set-Time script (can be used with CRON) - 12/30/15 06:22 AM

thank you

it help when using a box for iptv only,
because without satellites the time is not correct.

by
kikan
Posted by: Toysoft

Re: Automatic Set-Time script (can be used with CRON) - 12/30/15 06:34 AM

For OpenPli 4.0, do this

Just install the ipk attached, it will do all ;o)

TS
Posted by: Admin

Re: Automatic Set-Time script (can be used with CRON) - 01/22/16 09:01 PM

Also available thru the JAM 5.2,

Admin