Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crontab
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
courage
n00b
n00b


Joined: 22 May 2007
Posts: 38

PostPosted: Tue May 22, 2007 5:10 pm    Post subject: Crontab Reply with quote

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
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Tue May 22, 2007 5:15 pm    Post subject: Reply with quote

You must do an
Code:
fcrontab /etc/crontab
as root. fcron doesn't automatically notice changes in the system crontab file. See also
Code:
man fcrontab

_________________
Please add [SOLVED] to your message title if your problem is solved.

Death to all blobs!
Back to top
View user's profile Send private message
courage
n00b
n00b


Joined: 22 May 2007
Posts: 38

PostPosted: Tue May 22, 2007 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Tue May 22, 2007 8:36 pm    Post subject: Reply with quote

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 :wink:.

HTH
_________________
Please add [SOLVED] to your message title if your problem is solved.

Death to all blobs!
Back to top
View user's profile Send private message
courage
n00b
n00b


Joined: 22 May 2007
Posts: 38

PostPosted: Wed May 23, 2007 3:10 pm    Post subject: Reply with quote

Sorry but i couldnt find anything about the crontab update command... even in google.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 23, 2007 4:38 pm    Post subject: Reply with quote

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:
  • crond
  • crontab
Turns out crontab is the program used to edit the crontab. Imagine that. :)

- John
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum