Linked Questions

22 votes
4 answers
166k views

Bash script not executing from crontab [duplicate]

I have the following bash script: #!/bin/bash mysqldump -u ******** -p******** --all-databases | gzip > /home/srvlinux01/MySQLBackups/database_$(date +\%Y-\%m-\%d).sql.gz which is located in /...
Mateusz Kapusta's user avatar
0 votes
1 answer
8k views

Crontab and Shell Script not Executing [duplicate]

Anybody any suggestions on why my crontab and shell script is not running. I have chmod +x my shell script and added the following into crontab -e */5 * * * * bash cd /home/jclark/scrips/ipcheck/ &...
user avatar
2 votes
2 answers
7k views

Crontab not running script [duplicate]

EDITED: I got a script running with a cronjob every day at 1 am: 0 1 * * * /bin/bash /home/performanceRatio.sh It also appears in the cron.log: Feb 2 01:00:01 inf-education-67 CRON[108963]: (root) ...
why me's user avatar
  • 131
5 votes
1 answer
2k views

Why a working script does not execute as a cron job? [duplicate]

I wrote a script to backup a database. When I execute it directly, it works. I tried to make it a cron job and while it runs (I checked with service status cron) it seems that it silently fails. Here ...
Billybobbonnet's user avatar
0 votes
2 answers
6k views

Crontab not running [duplicate]

Possible Duplicate: Reasons why crontab does not work I have setup a crontab to run a shell script every minute. Here's my crontab file: * * * * * sh /var/www/stuff/public_html/recycle.sh This ...
kjakeb's user avatar
  • 263
2 votes
1 answer
2k views

Trouble with bash and crontab [duplicate]

Possible Duplicate: Reasons why crontab does not work I'm migrating some scripts from an older machine to a lucid ec2 machine. I'm sourcing a file in our ~/.bashrc and setting some environment ...
Nigel's user avatar
  • 487
-2 votes
1 answer
2k views

Setup a cronjob for PHP script in ubuntu & PHP [duplicate]

I want to setup a cronjob for PHP script in ubuntu I have a script just I want to know how to set it. * 3 * * * /var/www/html/booking_cron.php
DeepakB's user avatar
  • 21
1 vote
1 answer
894 views

Command works on terminal but doesn't work in cron [duplicate]

I have the following command that I can run from any folder and it will start my (Angularjs) webapp by using the grunt task runner tool - cd /root/dev/myapp && grunt serve However when I put ...
sonicboom's user avatar
  • 223
0 votes
0 answers
1k views

Crontab says command not found [duplicate]

I just setup a cron to restart 'Thin' application server for my Ruby application every hour. I have tried every method but the cron is giving error saying command not found. My script looks something ...
B A's user avatar
  • 101
0 votes
1 answer
184 views

Only part of crontab working [duplicate]

i have a line in crontab: * * * * * date >> /home/pana/temperatures.txt; hddtemp /dev/sda >> /home/pana/temperatures.txt ;hddtemp /dev/sdb >> /home/pana/temperatures.txt ;sensors &...
Štěpán Postránecký's user avatar
0 votes
1 answer
179 views

Cron task does not get executed [duplicate]

I have a list of commands to run every day. When I copy paste it directly to terminal and run it is working but when I copy paste the same command to cron its not working. This is the command 0 10 * * ...
Daler's user avatar
  • 283
0 votes
0 answers
53 views

Cron says it runs commands but doesn't [duplicate]

I have a very weird problem. I have a crontab which looks like this (this is the output of crontab -l: * * * * * touch /home/<user>/Desktop/crontest.txt A sample output of sudo grep CRON /var/...
Gobs's user avatar
  • 161
0 votes
0 answers
14 views

rndc flushname works from command line, but not from bash script [duplicate]

I am banging my head against the wall here trying to figure this out. I have an automated DNS propagation system I am trying to build internally, and everything works except rndc flushname. If I do ...
Zak's user avatar
  • 153
341 votes
14 answers
619k views

"(CRON) info (No MTA installed, discarding output)" error in the syslog

I have a fresh install of Ubuntu 12.04.1 LTS an a number of servers. I have not added any cron jobs or edited my crontab on those servers, however, at around the same time for each machine, I get a ...
sungiant's user avatar
  • 3,525
74 votes
3 answers
356k views

Script doesn't run via crontab but works fine standalone

I have a script that reminds me to restart my computer if uptime is more than, say 3 days (although its set to 0 days now just to check if the script is running as my computer has been up only over a ...
dearN's user avatar
  • 2,179

15 30 50 per page
1
2 3 4 5