How do i have cron jobs remain after a reboot ?


Recommended Posts

  • 2 months later...

make a .cron file and place it in your /flash/config/plugins/dynamix folder. To activate it, type update_cron within an ssh session. This will cause it to be added to the cronjobs immediately without the need to reboot.

 

The cron file needs to be formatted like so (This cron example will run at 10AM every Friday):

0 10 * * 5 command &> /dev/null

Link to comment

I'm certainly not the best for scripting. If you search (see How to Search in my sig) for script/notify you will see other examples of people using notify. The main thing I don't know is how you intend to produce the log file you want to include in the email, and that is going to be something that is specific to your use.

Link to comment
  • 3 years later...
On 12/12/2016 at 6:50 AM, GroxyPod said:

make a .cron file and place it in your /flash/config/plugins/dynamix folder. To activate it, type update_cron within an ssh session. This will cause it to be added to the cronjobs immediately without the need to reboot.

 

The cron file needs to be formatted like so (This cron example will run at 10AM every Friday):

0 10 * * 5 command &> /dev/null

So I have this working with something I wanted to CRON but is there a way to tell this schedule is setup?

crontab -l

doesn't show up the job but it is running

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.