View previous topic :: View next topic |
Author |
Message |
courage n00b
Joined: 22 May 2007 Posts: 38
|
Posted: Tue May 22, 2007 5:10 pm Post subject: Crontab |
|
|
First off all i want to say sorry if im putting this in the wrong forum.
The thing is about my crontab, it just wont run the task(*/10 * * * * ./path/file.pl -q).
First i didn't even have the crontab file in /etc/ dir, but i installed fcron and then i had it.
I edited the crontab with nano(nano /etc/crontab), i know that this is wrong.
I don't know were are the logs files about cronjobs, so i can't give you them.
What should i do next? |
|
Back to top |
|
|
tobr Guru
Joined: 29 May 2006 Posts: 330
|
Posted: Tue May 22, 2007 5:15 pm Post subject: |
|
|
You must do an Code: | fcrontab /etc/crontab | as root. fcron doesn't automatically notice changes in the system crontab file. See also _________________ Please add [SOLVED] to your message title if your problem is solved.
Death to all blobs! |
|
Back to top |
|
|
courage n00b
Joined: 22 May 2007 Posts: 38
|
Posted: Tue May 22, 2007 8:10 pm Post subject: |
|
|
I found out that for my usage the best is dcron, i installed it and added the crontab file(crontab /etc/crontab).
But still, doesn't do his job... i did some reboots and still nothing. |
|
Back to top |
|
|
tobr Guru
Joined: 29 May 2006 Posts: 330
|
Posted: Tue May 22, 2007 8:36 pm Post subject: |
|
|
IIRC, vixie-cron is the only cron that reads changes to the crontab automatically. Read the documentation for your crontab to find out if a command is needed to update the crontab. Please do that. Rebooting should not magically do that for you. This isn't Windows .
HTH _________________ Please add [SOLVED] to your message title if your problem is solved.
Death to all blobs! |
|
Back to top |
|
|
courage n00b
Joined: 22 May 2007 Posts: 38
|
Posted: Wed May 23, 2007 3:10 pm Post subject: |
|
|
Sorry but i couldnt find anything about the crontab update command... even in google. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed May 23, 2007 4:38 pm Post subject: |
|
|
Try looking right on your own machine. Hint: When you're using a package and are unsure of the documentation it provides, take a look at the files it provides in the /usr/share/man directory. Code: | equery files dcron | grep "/usr/share/man" | shows that there are the following man pages for dcron:Turns out crontab is the program used to edit the crontab. Imagine that.
- John |
|
Back to top |
|
|
|