Linked Questions

20
votes
4answers
146k 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 /...
0
votes
1answer
7k 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/ &...
0
votes
2answers
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 ...
2
votes
1answer
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 ...
-2
votes
1answer
1k 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
5
votes
1answer
349 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 ...
0
votes
0answers
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 ...
1
vote
1answer
711 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 ...
0
votes
1answer
157 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 &...
0
votes
0answers
86 views

Why doesn't, running a .sh file as a cron job work? [duplicate]

I'm having an .sh which has this particular script in it: scp -P 22 /somepath/testfrom/* user@server:~/somepath/testo This basically copies all the files (but then I'm having only one file for ...
0
votes
0answers
51 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/...
205
votes
11answers
341k 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 ...
29
votes
3answers
48k views

“command not found” when running a script via cron

I want to run my script in crontab, but I have some problems... In my script I run this command: db2 connect to myDB2 This works fine when I run this as db2inst1 user, but when I run this script in ...
24
votes
4answers
87k views

Cron Job Not Running?

I have a crontab file that looks like this: * * * * * /home/abliskovs/update/update.sh However when I check the syslog for evidence that the job has run, there is nothing that might indicate that it ...
10
votes
3answers
14k views

Daily cron job not running

A quick overview: I have a script that will daily backup my source code repository from SVN into a tarball for that day. I have tested the script and it works very well as long as I run it as sudo, ...

15 30 50 per page