The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
336 views

cron: log output of job, email errors?

This is a ridiculous newbie question, sorry! I am running a (Python) script regularly using cron. I would like to log the output to a logfile, and I would like to be emailed with any errors that ...
4
votes
3answers
1k views

Stop Cron job for a particular time interval

I have a cron job which runs every five minutes all day long. I want to stop this cron job running on Sundays between 4pm and 5pm - it should start again after this time. How can I script this?
15
votes
2answers
12k views

Difference between /etc/crontab and “crontab -e”

What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
5
votes
2answers
3k views

Only email on cron errors for jobs in cron.daily, cron.hourly, etc

I have several cron jobs that run (in /etc/cron.daily, /etc/cron.hourly, /etc/cron.weekly, etc.) and email root@localhost with the results. I'd like to stop those emails if the jobs are succeeding, ...
2
votes
1answer
263 views

Script to execute via cronjob that deletes all files in multiple directories

I'm hoping you can lend me your expertise. I use shared hosting on Hostgator and need to figure out how to delete all .gz files in multiple directories every hour. I think I have the cronjob ...
2
votes
2answers
277 views

Execute a cronjob once a day, when machine is on, but not necessarily at a specific time

I want to run a cronjob once every day on a machine that doesn't run all the time, but runs at least once a day for a couple of hours. The problem with a cronjob is, that I have to give it the exact ...
0
votes
2answers
842 views

cron job not working

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 ...
1
vote
4answers
215 views

Cronjob not working

I've got a simple crontab for ripping my local radio station only when I want: 0 16 * * 0 /root/streamripper.sh 0 17 * * 0 killall streamripper 0 20 * * 0 /root/streamripper.sh 0 21 * * 0 killall ...
4
votes
2answers
1k views

Can Ubuntu play a video via cron job?

I'm developing a display system for a paint shop. I've set up a computer with Ubuntu to run the video and display it on a TV, running a PHP script that should update the video every hour via the ...
3
votes
3answers
527 views

Running a cron job every other Monday

I want to run a job using crontab every other Monday. Is it possible?
0
votes
1answer
2k views

How to update svn working copy via a cron when svn server is located on local server

Hey guys, I have two servers. One of them has a svn server running and another hosting projects. I have a daily cronjob updating the projects -- ie running svn update, rebuild etc. Now, my ...
29
votes
3answers
58k views

How to run a cron job as a specific user?

I would like to run a cron job as a specific user on my machine. How may I specify the user for a cron job to run as?. I am running on Ubuntu 10.0.4 [Edit] The cron jobs will be running on a ...
2
votes
2answers
2k views

Help with running crontab from root

I'm using Mac OS X and having trouble getting a cron job to run. I type the following: $ sudo -i $ crontab -e I then enter: * * * * * root ifconfig en0 down > /dev/null 0 19 * * * root ifconfig ...
1
vote
2answers
13k views

How to create a cron job to upload files to an FTP server

I would like to create a cron job that uploads files from a directory on my computer to my FTP server. I would like it to do it daily at midnight. I know pretty much nothing about cron, so I ...