Linked Questions

2 votes
3 answers
810 views

crontab run every x hours vs run when modulo hour is zero

I have in my crontab the following 15 */4 * * * ... My original intent was that I would run ... every 4 hours from when the computer boots up. If I power on at 8 am, it would run at 8, 12, 16, 20,...
chribonn's user avatar
  • 291
6 votes
2 answers
38k views

How to detect error in cron jobs

The reasons why a cron job may fail is really very large. Most common reasons may be, Syntax error Using executable without proper path Using a shell variable which is not defined in cron environment ...
sourav c.'s user avatar
  • 44.7k
0 votes
2 answers
2k views

MySQL dump script runs manually but not via cron

I have the following script in /etc/cron.daily/, it works perfectly if I execute it manually but never runs via cron. There are other scripts in cron.daily that do execute however. #!/bin/bash DATE=`...
andrewmoore's user avatar
0 votes
2 answers
2k views

Custom Daily and Weekly Cron Jobs Not Running [duplicate]

I created a script to back up my databases and my websites. It runs fine if I run it straight up but it's not running at all as a cron job. I created a symbolic link to the script: lrwxrwxrwx 1 root ...
ErocM's user avatar
  • 521
7 votes
1 answer
21k views

16.04: How do I make cron create cron.log and monitor it in real time?

I know that cron events are stored in /var/log/syslog and I can use a command like: sudo cat /var/log/syslog | grep cron to see them. I'd much rather have the system keep a separate cron log file ...
SDsolar's user avatar
  • 3,169
3 votes
1 answer
4k views

How to change cron log level?

I replaced exec cron with exec cron -L 15 the run sudo service cron reload, sudo service cron restart but nothing changed. Cron doesn't log the end of jobs and doesn't log failed jobs. I hade no ...
max5555's user avatar
  • 317
2 votes
1 answer
2k views

Where is my cronlog? [duplicate]

Possible Duplicate: Where is the cron / crontab log? While trying to Google this a lot of sources claims there's a cron log in /var/log but I have none. I'm fairly convinced cron has run and I ...
Kit Sunde's user avatar
  • 11.1k
1 vote
1 answer
2k views

crontab -e. Added entries but no /etc/crontab

I did edit /etc/crontab using corntab -e. I have only one entry After save contab is not created despite the message. To be honest I have no idea what to do. I simply want to create a simple daily ...
0___________'s user avatar
1 vote
1 answer
2k views

How do I run a Supervisor task from cron.hourly?

I have a task defined in Supervisor that I would like to invoke hourly from /etc/cron.hourly. I can run it manually, but not from run-parts: $ sudo supervisorctl start my-task -- works # . /etc/cron....
lofidevops's user avatar
  • 20.9k
1 vote
1 answer
487 views

Can't run Sikulix 1.1.0 on Ubuntu 15.10 with crontab

I try to run a Sikulix script but nothing happens. crontab: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/absolute MAILTO="" # m h dom mon dow user command ...
Ppetrelli's user avatar
1 vote
1 answer
6k views

Where do I look for cron errors [duplicate]

I have 2 cron jobs that were running fine but now stopped running. I looked through my crontab and everything looks OK. How can I tell if these jobs are running? is there a place where cron stores ...
EastsideDev's user avatar
0 votes
1 answer
478 views

Command not working in crontab, but work in terminal [closed]

I have command in crontab: 20 * * * * root /usr/bin/find /home/user/temps/ -type f -mmin +20 -delete If I run this command in terminal everything works fine, but in /etc/crontab doesn't work. ...
Anton Chirkov's user avatar
0 votes
1 answer
161 views

Where can I find the output log from a custom crontab task [duplicate]

I configured a regular task me@alpha:~$ crontab -l | grep '^\*' */5 * * * * (cd ~/Documents/OrgMode; git add .; git commit -m "defensively save") It works but I cannot find the log in mail.log me@...
Wizard's user avatar
  • 2,891
1 vote
0 answers
198 views

Execute script only once per day

I am trying to check if a certain script (Backup_18_04.sh) has been run today. I only want it run once per day. I found this, but it does not work. I can not tell what it is checking for? today=`/bin/...
fixit7's user avatar
  • 3,127
0 votes
0 answers
1k views

Git Pull and then Push via Cron in Ubuntu

I am in a git enterprise environment and there is a git repo where I pull the whole code, build it using gulp.js and then copy the distribution to another repo, where I push it to remote. I have ...
naqushab's user avatar
  • 103

15 30 50 per page