Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.

learn more… | top users | synonyms (2)

2
votes
5answers
6k views

Using Crontab to tar a directory at a regular interval

I want to tar a directory at a regular interval (say every morning at 4am) so I was planning on using crontab. How can I have the date be in the filename ie srcdirectorybackup5-30-09.tar so that I can ...
15
votes
3answers
7k views

Override MAILTO for a single crontab entry

We have a role account at work that has a pretty big crontab. Its MAILTO is pointed at a shared address, so that a number of us get notified if something fails. I'd like to add an entry to this ...
15
votes
10answers
17k views

Techniques to Monitor cron tasks?

Are there good techniques for monitoring cron tasks over a cluster? We're starting to use cron to launch tasks at daily intervals. A few ideas for checking out information: Add special application ...
0
votes
2answers
1k views

Backups Failing (Previously Fine) (rdiff-backup) [closed]

This is driving me a little crazy as previously it ran a full and happy backup. Cron: /usr/bin/rdiff-backup --exclude /var/yp --exclude /var/tux --exclude /var/tmp --exclude /var/www/usage --...
19
votes
5answers
20k views

How can I prevent cron from filling up my syslog?

I have a script which needs to be executed each minute. The problem is that cron is logging to /var/log/syslog each time it executes. I end up seeing something like this repeated over and over in /...
0
votes
1answer
3k views

Email rejected when hostname.domain.nl is in the 'From:' email address

I have a couple of CentOS 5.3 systems and I have the same problem on all of those systems. When I send an email to 'root' (without specifying a domain) the email is rejected by the email provider. ...
1
vote
5answers
895 views

How can two users set same cron file to run?

In our environment we have two DBAs to run some cron jobs defined in cron_jobs.txt file. Frequently we need to chan ge timing and commands in that cron_jobs.txt file and reload it. Problem is, if ...
4
votes
3answers
582 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 * * * /usr/...
1
vote
4answers
5k views

Cron Job not Running

I can run this command from CLI with not problem on the fedora box but not from a Cron: /usr/bin/php /var/www/support_web/api/cron.php This is the cron output: Output from command /usr/bin/php /...
4
votes
9answers
12k views

Unix Cron : Can we set cron jobs to run at the same time

I created an entry in crontab to execute a job at midnight as e.g user A. In the morning, I find there were no result of the script, checking the /var/cron/log, I find that during that hour (same ...
5
votes
4answers
10k views

Change default crontab editor to nano in FreeBSD

When I edit the crontab using crontab -e it opens the crontab in vi. I'd prefer it to use nano. How can I change this? EDIT: For some reason the export command returns command not found. And ...
0
votes
4answers
1k views

sqlldr job not running through Autosys

I have a shell script that if run manually or via Cron executes fine and loads a delimited file using sqlldr to the database successfully. However via Autosys the script executes, sqlldr says it was ...
1
vote
2answers
173 views

Is there a way to automate perl script in call-back style on linux platform?

I have a perl script that does polling a file's existence in every 600 seconds before it goes on to finish its task. I am using crontab to schedule my script. I wonder is there an event system on ...
2
votes
3answers
2k views

the error occured a command in sudo from crontab

When I execute shell, but it is carried out by cron "sudo: sorry, you must have a tty to run sudo" appears. but how should this have dealt?
2
votes
5answers
341 views

Making a crontab more efficient

I run a relatively simple server with a couple of web sites that I maintain. I set up a crontab to dump the mysql and zip up the PHP daily. Rotating over a week I have 7 increments of whatever has ...
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
4answers
1k views

What does “every two minutes” mean in cron?

I've got two scripts in cron set to run every two minutes: */2 -- the thing is, they're out of step. One runs at 1,3,5,7,9 minutes, etc. and the other at 0,2,4,6,8. This is not a mission-critical ...