[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scripts running all the time?



Daniel Dalton wrote:
Hi,

I want to put a call to my hpodder (podcaster) in a script that runs all the time. So I can have my computer on and when the time hits 7 am or between 7 and 10 am it will podcast.

This is because I get better download speeds earlier in the morning.

So what script could I add an if statement to that could then just simpley run
hpodder update
If the time is correct?

I heard about crontab.

I read
man crontab but didn't find much.

try 'man 5 crontab', that will tell you the format of the crontab file

For your case, I think the following line should work
0 7 * * * /path/to/script.sh


I did;
crontab -e
And got a blank file.
So if I should use crontab then could someone please send me a sample file?
Its ok if it calls my /home/daniel/scripts/hpodder.sh
script.
I'll just add code in there to check...

Thanks for any help,


--
Daniel Dalton

http://members.iinet.net.au/~ddalton/
d.dalton@iinet.net.au




--
Raj Kiran Grandhi
--
At the source of every error which is blamed on the computer, you will find at least two human errors, including the error of blaming it on the computer.


Reply to: