Quote:
oh no I guess it's not what I wanted... :L
I need it to run like this:
1:00 /home/user/jim/test.pl
2:00 /home/user/jim/test2.pl
3:00 /home/user/jim/test3.pl
4:00 /home/user/jim/test4.pl
and so forth
|
Quote:
Originally Posted by AzteK
so would it be like this?
0 0/1 * * * /home/user/jim/test.pl
0 0/2 * * * /home/user/jim/test2.pl
0 0/3 * * * /home/user/jim/test3.pl
|
Just three different scripts then? There are different ways to go but in a pinch perhaps this might work:
0 1 * * * /home/user/jim/test.pl
0 2 * * * /home/user/jim/test2.pl
0 3 * * * /home/user/jim/test3.pl
0 4 * * * /home/user/jim/test.pl
0 5 * * * /home/user/jim/test2.pl
and so on.
In this example:
test.pl would run at 1am and 4am.
test2.pl would run at 2am and 5am
test3.pl would run at 3am.
Another way of doing the above (same thing) would be:
0 1,4 * * * /home/user/jim/test.pl
0 2,5 * * * /home/user/jim/test2.pl
0 3 * * * /home/user/jim/test3.pl
... but there are all sorts of ways to do it.
You'll probably want to redirect the output in some way too.
Also see this:
http://www.tutorial5.com/content/view/95/51/
It's a decent tutorial which may be of some help.
You can type 'man crontab' at the command line to see the man page as well.