Il ven, 2005-04-01 alle 02:19, RickSisler ha scritto: > Hi All, > I have a bash script to generate a ~/.signature file that gets added > to outgoing emails, as many do. I want it to run every 2 hours, but > this runs it every minute, for some reason. I checked the man page for > crontab(5) and it states to do it this way. Heres what I used: > > * 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature > > or even: > > * */2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature > what would the proper syntax be ? > > Thx for any replies.
* 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature seems to run the command every minute (the first *) you should put at least a minute of the hour (choose one below) 0 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature 9 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature 20 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature 45 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature 59 0-23/2 * * * /home/ricks/bin/sigfile > /home/ricks/.signature maybe this reminder below could help you #################################################################### #minute (0-59), # #| hour (0-23), # #| | day of the month (1-31), # #| | | month of the year (1-12), # #| | | | day of the week (0-6 with 0=Sunday)# #| | | | | commands # #################################################################### 30 01 * * * /home/jim/bin/cleartmp regards, Francesco
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________