Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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"" ...
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".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.