LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2006, 09:07 AM   #1
Thakowbbery
Member
 
Registered: Mar 2005
Posts: 138

Rep: Reputation: 17
Crontab doesn't accept new entries


Very strange

This is my crontab:

0 0 * * 7 /usr/local/squid/sbin/squid -k rotate
0-59 * * * * /etc/monitorasquid
0,15,30,45 * * * * /usr/local/squid/etc/inclui
5 0 * * 7 /usr/bin/sarg -n

The first line was recently changed, where I added the number 7, so it would be done on sundays.
The last line was addedd at the same time.
The thing is:

Both lines doesn't seen to work at all, while the other two work perfectly.
I already though it could be some problem with the scripts that were suposed to run, but both work if ran manually.
The logs just don't show nothing, like the lines were not recognised.

And also, running some tests, I added two simples commands:

X Y * * * /bin/echo "Test"
X Y * * * /sbin/ifconfig > /root/network
(Where X and Y are the minute and the hour I went on changing)

And those didn't work either.
I tried restarting crond, but I didn't work also.
I'm clueless about, please, can someone help me?

Thanks in advance
 
Old 08-19-2006, 02:39 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Which version of cron (vixie, dylans, ... )and which version number,
on which distro? How are you editing crontab?


Cheers,
Tink
 
Old 08-21-2006, 07:56 AM   #3
Thakowbbery
Member
 
Registered: Mar 2005
Posts: 138

Original Poster
Rep: Reputation: 17
Vixie Cron 3.0.1
Mandrake 9.0
Kernel 2.4.19
Using the old faithful Vi :P

Last edited by Thakowbbery; 08-21-2006 at 07:58 AM.
 
Old 08-21-2006, 01:12 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'd suggest that you try to find a newer rpm for cron for your
distro (you didn't mention which rpm version it was) but there
were TONS of fixes mentioned on a couple of pages I found looking
for 'vixie cron "3.0.1"" ...


Cheers,
Tink
 
Old 08-21-2006, 01:56 PM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Have you tried editing crontab using the command:
crontab -e ?
This command opens a crontab-specific vi session. I'm not clear what the difference is but I think if your distro includes the command "crontab" then this is the standard way of editing the crontab files. To list what's already in a crontab file, use crontab -l .(That's a lower-case "L".

Let us know...
 
Old 08-22-2006, 01:49 PM   #6
Thakowbbery
Member
 
Registered: Mar 2005
Posts: 138

Original Poster
Rep: Reputation: 17
Well, I remembered one thing

I had installed Webmin in that server some time ago and never really used it.
Put it back to work and created the cronjobs there and guess what? It worked :P
Don't know what files does webmin changes, but it wasn't crontab.
Guess I'll take a look later on, but for now everything's working fine.

Thanks for the support everyone
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-P ACCEPT vs -j ACCEPT Wynd Linux - Networking 3 05-30-2006 08:42 AM
crontab entries will not execute when not logged fatra2 Linux - Software 2 05-23-2006 02:22 AM
su doesn't accept my password CGameProgrammer Linux - General 7 10-13-2004 12:07 PM
how to accept my modem? trinitycomu Linux - Networking 1 07-13-2004 04:56 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration