Posts

Showing posts with the label cron

DSM 4.2 : scheduled tasks

If you have manually defined scheduled tasks in /etc/crontab , you can remove it and use the ' Scheduled tasks ' tool embedded in the new DSM version to create your scheduled tasks. Please be carefull that the tool uses its own config file in order to define the tasks ( /usr/syno/etc/scheduled_tasks ) and do not merge info with the crontab file when upgrading to DSM 4.2... The /etc/crontab file is now only used to launch the tasks defined by the ' Scheduled tasks ' tool. Nevertheless, and hopefully, tasks defined manually in the crontab file are still working...

Bash script launched by cron on OpenBSD not working

In the pink world of Ubuntu from where I come, things are easy, and PATH variable is fully set in each context. But in the dark world of OpenBSD, things aren't always obvious ;) If you decide to write a bash script intended to be used as a cron task, DO NOT forget to fully qualify path of non standard commands : e.g. zip or smbclient should be written as /usr/local/bin/zip and /usr/local/bin/smbclient . Hope it could save time for others...