cron

Is that the minute in which the cron tab will start?

Basically I've got some backups to do but want to download them off speak else i'll have a nice bandwidth bill. :P.

I was thinking about starting the script at 8pm then at 6am the following morning set a cron to kill the script? Its a dirty way of doing it though.
 
This isn't possible solely using cron.

Creating a second cron job to kill it would work but it would be more efficient for the script to kill itself at that time. Better yet would be to have your script stop downloading and wait until the following evening to resume.
 
Hey Adam,

Having the script stop will only be a short term measure so I may just make a cron to kill the script.

I presume a bit of perl would be needed to stop and resume a script.

Cheers :)
 
You could kill processes directly from cron, depends what you're downloading with. For example, wget is pretty good for resuming things, so you could just put a 'killall wget' in your crontab for 6am and run it with the -c option (for continuing) the next day.
 
Back
Top Bottom