You are not logged in.
Pages: 1
Topic closed
My crontab is
SHELL=/bin/bash
* */5 * * * root /var/scripts/backup.sh
which should execute a Backup script every 5 hrs.
But it just doesn't. I don't get any error, it;'s just not executed, as you can see here:
Offline
Are you using systemd? Have you enabled the cron (e.g. cronie) service?
Offline
[root@Lina yt]# systemctl start cronie
[root@Lina yt]# systemctl start cronie.service
That might have solved the problem,
Apparently not.
Tried
* * * * * root touch /home/beryju/derp.sh
No file was created.
Offline
If it really is "your" crontab (i.e. where users' crontabs are stored, belonging to root or any other user: under /var/spool/crontab) remove the "root" bit.
If it is a system crontab (something under /etc/cron.d) then I don't know what's wrong.
Last edited by vacant (2013-06-05 14:52:31)
Offline
The crontab man page says that you should edit the crontab with the "crontab -e" command. Did you do that?
Offline
Seems I have the same issue. I have no issue with a 'root' task, but a user task, I do.
I have also put 'all' in /etc/cron.allow and nothing in /etc/cron.deny
I have created my job using 'crontab -e' and created the task as follows:
@weekly backup /usr/local/bin/backup.sh
the /usr/local/bin/backup.sh is owned by me.
---------------------------
Its been more than a week and it is not processing it.
I can run the process myself (the script file).
in /var/spool/cron
I see my entry.
in /var/spool/anacron
I only see root's tasks
I also notice there is no /var/spool/crontabs
I'm quite puzzled. Is anacron going to do my task or crond ?
dcron was working, and I hope someone brings that AUR package back to life.
Offline
Do you have a blank (new)line at the end of your crontab? This is necessary for the crontab to be executed I believe.
Last edited by geno.nullfree (2013-06-17 18:24:49)
Offline
dcron was working, and I hope someone brings that AUR package back to life.
dcron is working.
You can use JonnyJD's PKGBUILD.
Offline
Kilzool wrote:dcron was working, and I hope someone brings that AUR package back to life.
dcron is working.
You can use JonnyJD's PKGBUILD.
I would, however, it is : Flagged out-of-date (2013-06-03)
Offline
Do you have a blank (new)line at the end of your crontab? This is necessary for the crontab to be executed I believe.
No I have not, but will try that.
Offline
I would, however, it is : Flagged out-of-date (2013-06-03)
You should really try reading the comments for the AUR package...
Offline
Kilzool wrote:I would, however, it is : Flagged out-of-date (2013-06-03)
You should really try reading the comments for the AUR package...
I went back and read it. Installed it, too.
Thank you and thanks to JohnnyD and those who keep dcron working for us that PREFER it.
Offline
...for us that PREFER it.
I fail to understand why you needed to yell "prefer" here. No one is telling you that using dcron is not okay. By all means, use whatever cron implementation you wish. If this is somehow an attempt to emphasize your dismay at it not being in the official repos, you have to remember that there are still two implentations of cron in the repos (cronie and fcron) and that it takes developer or TU interest to keep these things there. It would be silly to expect maintenence of a piece of software that the potential maintainer didn't have any interest in.
Offline
systemctl start cronie
systemctl start cronie.service
fixed the issue .
Offline
Don't necrobump, especially with information in th wiki/man page: https://wiki.archlinux.org/index.php/Co … bumping.22
Closing
Offline
Pages: 1
Topic closed