Linked Questions

44
votes
4answers
46k views

Running Cron every 2 hours [duplicate]

I have the cron job as shown below, and wanted it to run every 2 hours, but it keeps running every 2 minutes. Can someone tell me where I'm going wrong? * */2 * * * /path-to-script
29
votes
4answers
45k views

What is the correct syntax to run cron every 4 hours? [duplicate]

I have the following syntax (which I think is correcT?) but it runs the command every minute! * */4 * * * /cmd.sh
20
votes
3answers
7k views

What does * * * * * (five asterisks) in a cron file mean? [duplicate]

The first noncomment line in a legacy crontab file begins with five asterisks: * * * * * ([a_command]) >/dev/null 2>&1 The authors are gone, so I do not know their intent. What does ...
7
votes
6answers
30k views

how to create a cron job that runs on the first day of month [duplicate]

There are fields on my server's control panel like this Minute - Hour - Day of month - Month - Day of the week - Command How can i create a cron job runs on first day of the month with this fields ...
6
votes
2answers
2k views

My cron tasks report command not found [duplicate]

This is the contents of my crontab file: 0 0,6,12,18 * * * cd /var/www/app/current && backup perform --trigger db_backup --config_file config/backup.rb --data-path db --log-path log ...
4
votes
3answers
12k views

Cron fails with exit status 127 [duplicate]

I'm trying to get my crontab to run a few rake tasks for a rails app, but it seems to always exit with the status of 127, in my syslog it look like this: Jun 7 05:10:01 ip-10-170-122-226 ...
1
vote
5answers
1k views

Unix Crontab Job Time Conflict? [duplicate]

I have the following two entries in my Crontab job that are set to start at 10:00am. Job #1 0,20 10 * * 1-5 ./run_program_A Job #2 0,20 10 * * 1-5 ./run_program_B At 10:15, I checked my log ...
3
votes
2answers
3k views

Cron runs my script but script doesn't do anything, something to do with mail error??? “got status 0x004b#012” [duplicate]

I have a seriously weird problem with one of the Ubuntu 10.10 web servers I administer. I wrote a script using ruby and rake to run some tar commands and do a mysqldump of the databases. I've ...
6
votes
1answer
512 views

how to execute a command on the first, second, third and fourth Sunday of the month with crontab [duplicate]

I have 4 servers and I want each one of them to execute a reboot on Sunday. Server 1 - first Sunday of the month (first week) Server 2 - Second Sunday of the month (2nd week) Server 3 - third Sunday ...
4
votes
3answers
471 views

Creating a cronjob that runs at 3:00am, 3:50am, 9:00am, & 9:50am? [duplicate]

How would I go about creating a cronjob that runs at the following times every day: 3:00am 3:50am 9:00am 9:50am I tried this but it doesn't seem to be working: 00,50 3,9 * * * ...
0
votes
2answers
4k views

How to cron run every 1 hour on ubuntu 9+? [duplicate]

How to start a script using cron every hour?
2
votes
2answers
1k views

how to execute bash script with crontab in centos? [duplicate]

My bash file is not executed by cronjob created as root. The cronjob setup looks as it follows 0 0 * * * mysql_backup.sh does need to be decalared with the bash command 0 0 * * * bash ...
-4
votes
5answers
1k views

Run Cron Every Hour Debian [duplicate]

How can I setup a cron job in debian to run a certain url once every hour. There`s no control panel or anything.
1
vote
2answers
3k views

run script with parameter in cron [duplicate]

I want to run .py script: python /home/project/manage.py slope_update If I run it from shell it's OK, but in cron does not work: */10 * * * * root python /home/project/manage.py slope_update ...
1
vote
2answers
804 views

Use cron to run a bash script that runs a bunch of sub-commands [duplicate]

I have the following shell script: /var/local/myapp/bin/import #!/bin/bash # Move to base directory cd $(dirname $0) cd .. # Execute and bail if one of them fails cake compile cake tms:fetch cake ...

15 30 50 per page