On Sun, 24 Feb 2008, Raj Kiran Grandhi wrote:
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
How would I make it go on every day between 2 and 3 pm? (That's the time
now so just for testing...)
Yeah I think my last message had the sintax all wrong.
I guess all the * signs mean work on every day?
But dunno how its meant to stop at 10 am with your example.
If you could show me the one for 2 -3 pm I would appreciate it.
Then hopefully I can see it print hello world.
My /home/daniel/bash-scripts/hpodder just contains the line
echo "hello world"
Thanks,
--
Daniel Dalton
http://members.iinet.net.au/~ddalton/
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]