create cron in FC5 question

Tom Poe tompoe at fngi.net
Sat Apr 21 06:51:16 UTC 2007


Manuel Arostegui Ramirez wrote:
> El Sábado, 21 de Abril de 2007 00:17, Tom Poe escribió:
>   
>> Manuel Arostegui Ramirez wrote:
>>     
>>> El Sábado, 21 de Abril de 2007 00:06, Tom Poe escribió:
>>>       
>>>> Manuel Arostegui Ramirez wrote:
>>>>         
>>>>> El Viernes, 20 de Abril de 2007 23:44, Tom Poe escribió:
>>>>>           
>>>>>> Manuel Arostegui Ramirez wrote:
>>>>>>             
>>>>>>> 2007/4/20, Tom Poe <tompoe at fngi.net>:
>>>>>>>               
>>>>>>>> I googled for cron howto, and noticed that the /etc/crontab file is
>>>>>>>> empty.  I want to run an event on a daily basis, and need to know
>>>>>>>> where to add, and how to add an event to run jpodcatcher once a day.
>>>>>>>> Any help appreciated.
>>>>>>>> Tom
>>>>>>>>                 
>>>>>>> First off, if you want it to run in the system cron, just
>>>>>>> /etc/crontab, on the other hand if you want it as an user cron, just:
>>>>>>> crontab -e
>>>>>>> Anyways, this is an example of a basic job running daily at, for
>>>>>>> instance, 11:00 AM
>>>>>>>
>>>>>>> SHELL=/bin/bash
>>>>>>> PATH=/sbin:/bin:/usr/sbin:/usr/bin
>>>>>>> MAILTO=root
>>>>>>> HOME=/
>>>>>>>
>>>>>>> # run-parts
>>>>>>> 01 * * * * root run-parts /etc/cron.hourly
>>>>>>> 02 4 * * * root run-parts /etc/cron.daily
>>>>>>> 22 4 * * 0 root run-parts /etc/cron.weekly
>>>>>>> 42 4 1 * * root run-parts /etc/cron.monthly
>>>>>>> 00 11 * * * root /home/manu/babelserver.sh
>>>>>>>
>>>>>>> got it?
>>>>>>>
>>>>>>> You might want to read the Crontab manual.
>>>>>>>
>>>>>>> Hope this helps
>>>>>>> All the best.
>>>>>>>
>>>>>>> Manuel.
>>>>>>>               
>>>>>> Manuel:  Thanks.  Sounds right to me.  Problem is, on my FC5, the
>>>>>> /etc/crontab file is empty.  There are directories for cron.daily,
>>>>>> cron.weekly, etc.  When I cd to those directories, there are several
>>>>>> files, each of which is running a shell script.  So, do I have to
>>>>>> create a shell script, and copy it to the directory I want, or can I
>>>>>> place a cron command someplace?
>>>>>> Tom
>>>>>>             
>>>>> Actually, it's up to you, whatever suits for you :-)
>>>>> Cheers
>>>>>           
>>>> Manuel:  Please share your FC5 crontab file.  Mine is empty.  What's in
>>>> yours?
>>>> Thanks, Tom
>>>>         
>>> I already did it :-)
>>>
>>> [manu at Arbusto ~]$ cat /etc/crontab
>>> SHELL=/bin/bash
>>> PATH=/sbin:/bin:/usr/sbin:/usr/bin
>>> MAILTO=root
>>> HOME=/
>>>
>>> # run-parts
>>> 01 * * * * root run-parts /etc/cron.hourly
>>> 02 4 * * * root run-parts /etc/cron.daily
>>> 22 4 * * 0 root run-parts /etc/cron.weekly
>>> 42 4 1 * * root run-parts /etc/cron.monthly
>>> 00 11 * * * root /home/manu/babelserver.sh
>>>       
>> Manuel:  I thought so.  Was your /etc/crontab file empty when you
>> installed FC5?
>> Tom
>>     
>
> To be honest, I can't remember but probably it wasn't empty.
> Do you have the daemon file, the man pages of cron....don't you?
> [root at Arbusto ~]# rpm -qa | grep -i crontab
> crontabs-1.10-7.1
>
> Cheers
>   
Manuel:  I think FC5 has a file for startup, someplace, and it calls for 
cron to be run hourly, daily, etc., but it isn't the /etc/crontab file.  
I am looking for someone that knows what that file is, or how FC5 
handles cron.  I don't think it's handled like what you have.
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tompoe.vcf
Type: text/x-vcard
Size: 353 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070421/69d014db/attachment-0001.vcf>


More information about the fedora-list mailing list