[HOW TO] use cron on Synology NAS

Morning Guys,

Today I show you how to set the cron on Synology NAS.
Basically Synology OS have core OS is unix. Thus it's the same about core service - I think so.

Unlike Linux based system, you do not use "crontab -e/ -l on the Synology NAS.

You must go as below:

$sudo -i

$nano /etc/crontab

Here you can edit the cron

$synoservice -restart crond

To restart the cron

Also you can run the task under the username myuser as below:


#min    hour            mday    month   wday    who     command
30      0,6,12,18       *       *       *       root    /bin/su -c "/var/services/homes/myuser/apps/flexget.sh" myuser
 
Thank you, 
 
 Reference: http://www.multigesture.net/articles/how-to-use-cron-on-a-synology-nas/ 

0 nhận xét:

Post a Comment