cron is a task scheduler based on clock time that runs on Linux-based machines.

learn more… | top users | synonyms

0
votes
1answer
103 views

In OS X Lion under zsh, how can I set up a /Users/username/tmp directory which deletes after X days?

I'm new to scripting and regular jobs on OS X, so appreciate the help in advance. I'm looking to have a tmp directory in my homedir, as in /Users/username/tmp which I can use as my "downloads" ...
4
votes
1answer
2k views

Is there a aliases file for sSMTP?

I installed sSMTP for sending emails from command line. I want to create some alias for cron jobs: $ sudo vim /etc/aliases # append this line at the end myname: root $ newaliases ...
6
votes
5answers
6k views

Run a cron job on the first Monday of every month?

I'd like to run a job from cron at 8.30 on the first Monday of every month. The cron Wikipedia page says While normally the job is executed when the time/date specification fields all match ...
3
votes
1answer
8k views

How to use @reboot for crontab with delay

In crontab, I can use @reboot to run a command after the system reboot. Is there a way to do this with an delay, i.e. run a command after 10 minutes of reboot?
-1
votes
2answers
421 views

cron uid:gui for every username

So in the nutshell : There was user John with 502:502. After i deleted John and recreated him, his UID:GID changed to 504:504. Cronjobs are still running under the John's crontab, but when the ...
0
votes
2answers
2k views

How can I perform a cron job every minute?

Are the following cron configurations identical? * * * * * 0 * * * * 1 * * * * I'm looking for a configuration that will run the job every minute.
1
vote
1answer
841 views

How do I make cron run a Java GUI application?

I have a script which runs a Java GUI application using "java -jar app.jar". I have added the script to the crontab to run every minute, check the processlist if the application is up. If it isn't it ...
0
votes
1answer
522 views

“Permission denied” when trying to use RVM with Cron

I am trying to employ the method descibed here. My crontab: # m h dom mon dow command @reboot /home/qe2user/.rvm/environments/ruby-1.9.3-p125 /home/qe2user/Ruby/test/prog.rb > ...
0
votes
1answer
315 views

Running cronjob on specfic hours

How do i setup a cronjob to run every hour except from 11pm until 1am ? Because during that time, the system is doing maintenance. Cheers
0
votes
1answer
153 views

Cron view on VPS

How can I view all cron jobs scheduled on my Linux Ubuntu VPS? When I use crontab -l I do get a list of cronjobs but I cannot see the ones that are scheduled by WordPress, how can I also see the ones ...
2
votes
1answer
382 views

How to set-up date for cron weekly backup?

I'm writing a command for cron to do automatic backups for my flashdrive. I use tar ... -N <some date> to make the backup. The issue is how to write the command which gives me the right date. ...
12
votes
2answers
8k views

Set a cron every certain hours between certain hours

How can I set a cron to run every 2 hours between 8 am and 5 pm for example? Is this possible?
0
votes
1answer
340 views

Convert cronjob to launchctl plist

I should convert this cronjob to a launchctl plist. Is this possible? 0 8-18 * * 1-5 /usr/bin/curl -s --data "par1=a&par2=b&press=OK" http://mydomain.com/file.php /dev/null
3
votes
1answer
142 views

Cron job once a minute for one hour a day

Is there a way to run a cron job once a minute for an hour every day? I know I can probably make 60 cron jobs to do this but that would make it difficult if I ever needed to edit the job.
1
vote
0answers
884 views

Why does cron task run twice?

I have a task that should run each day in Ubuntu10.04. So I use crontab and copy the scripts of the task to the directory /etc/cron.daily. Here is the my crontab: # /etc/crontab: system-wide crontab ...
1
vote
0answers
281 views

What happens if cron.daily is not terminating

Today I had to realize that some cron jobs werent run on my server! In the log files I find this: Mar 13 03:30:01 osp-server anacron[7261]: Anacron 2.3 started on 2012-03-13 Mar 13 03:30:01 ...
1
vote
3answers
1k views

What do slashes “/” mean in crontab?

I'm seeing slashes in some crontab examples, I don't understand what they mean? Check this one out for example */10 * * * * /home/ramesh/check-disk-space ...
8
votes
1answer
9k views

what is run-parts in /etc/crontab, and how do I use it

I have been digging through my Linux system. To try and understand how it all works In the /etc/crontab file. I see the following # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * ...
1
vote
1answer
414 views

How is crond daemon started without an init.d/chkconfig entry?

I'm running a sandbox server with Fedora 15. I've gathered that since my crontab file has no entries (ie. ***** run-parts /dir/) for scheduled run-parts, it is not currently configured. The ps command ...
3
votes
1answer
288 views

How did I wipe out all my cron jobs?

I have accidentally wiped out all my cron jobs. I'm not sure what I have done. I don't remember deleting entries from it by issuing crontab -e. What are the possible ways that the cron jobs can be ...
0
votes
3answers
1k views

Simple Cron task in Mac OS X Lion

I am trying the Cron facility in Mac OS X Lion, but it does't seem to work. The crontab looks like this: MacBook-Air-de-Vincent:run vincentle$ crontab -l MAILTO=bxxxxxxxx@gxxx.com * * * * * (echo ...
1
vote
1answer
456 views

Debian Linux cron stubbornly refuses to run at right time

I have a Debian Linux server, recent install. It has this cron job: 7 1 * * * /do/something/important.sh As I read that, it should run at 1:07am. Instead, it runs at 5:07pm. So, wrong ...
1
vote
1answer
497 views

Need to set cron for random intervals with iMacros

I am trying to learn about cron for iMacros but I don't know where to look. Google was no help. Basically I have script I wrote, a series of commands, like this: Line 1 Line 2 Line 3 etc. What I ...
4
votes
1answer
594 views

Shell script of mysqldump works fine when run manually, but does not run in the cron job?

I have a shell script to get a MySQL database dump. This script works fine when run manually #!/bin/sh fqn=/home/Mysqluser/daily_dumps/bookstore_`date +%Y%m%d_%H%M%S`.sql.gz mysqldump -u root -h ...
1
vote
0answers
41 views

query a URL every H hours for changes in the results?

How can I query a specific URL (mostly html and js) every H hours for changes in html content, which is mostly an html table with some header, and have the results fed to an RSS? This URL in question ...
1
vote
2answers
840 views

Writing a cron job to email myself

How would i write a simple cron job to email myself a message at a certain time? Also is it possible to create a cron job without root access. I'm trying to use my school's server?
0
votes
1answer
409 views

What is the difference between “periodic” and “cron” on OS X?

I bought a book on OS X and it says that launchd now control the scheduling of cron tasks, it this true? Also it says that if I place commands in /etc/daily.local that they will execute after the ...
2
votes
2answers
2k views

Multiple crontabs for one user

is there a way to use multiple crontab files for one user? Thinking something along the lines of crontab file per project instead of crontab per user... Any help is appreciated...
2
votes
5answers
229 views

randomised cron command

I'd like to write a cron command so that a job would execute once at some random time during the week - is this possible without having the crontab modify itself? I've considered writing a function ...
1
vote
1answer
2k views

How can I write a cron job to archive my log files every night?

I assume this is relatively easy but my shell scripting isn't that great so I'm hoping to get some help. I have a task which runs every hour and appends its output to a log file. I'd like to move ...
1
vote
1answer
1k views

why does my python cron job time out?

I have a long cron job running a python script in CENTOS, but for some reason it seems to timeout or otherwise end without completion. the job runs fine when executed straight from bash, but seems to ...
4
votes
5answers
4k views

Crontab deleted?

Instead of typing "crontab -e" I accidentally typed "crontab" and was stuck in the middle of a process so I aborted the process. Now when I go to crontab -e it's entirely blank. This isn't good at ...
0
votes
1answer
63 views

I can not find specific cron running at *:21 and *:56 on Debian

I am frustrated. I have two mystic crons running on our server, that I can not find by doing crontab -l. The good thing is these crons are sending mails. That is how I know those are running at :21m ...
2
votes
2answers
1k views

kill and restart process by cron

I've got python script running on a remote machine, periodically it stops responding so I ssh in, kill the existing process, and then restart it. I have to do this several times a week and it's ...
1
vote
2answers
843 views

How to create snapshots of your server for backup in Cent OS 5

I'm making the move from VPS to Dedicate server. Unfortunately, most dedicated servers do not provide server backups like managed VPS's do and I really like the piece of mind of having a backup of all ...
-4
votes
1answer
617 views

What are some cronjob programs for Windows 7? [closed]

Especially programs that can test to see whether files in two directories are the same file or not.
1
vote
2answers
2k views

Cron environment variables

I'm running a simple shell script that runs just fine in a login shell from cron, where it doesn't run. For some reason, /usr/local/bin is not on the users path when run from cron while it is when run ...
1
vote
2answers
584 views

Cron Job timing

Lets say 0 0,12 * * * command is what you write a cron job, which runs twice a day on 00hour and 12th hour. How to write to do cron job twice a day but lets say on 2pm and 2am?
0
votes
4answers
3k views

Disable cron jobs for a specific user

I have a list of jobs in the crontabs for user1, user2. I want to prevent the jobs of user2 from running. I tried listing user2 in cron.deny, but that only prevents him from accessing his crontab. ...
0
votes
1answer
518 views

Restart Solaris 10 SMF service automatically each day

I am currently facing the problem how to restart a SMF service automatically each day at a specific time. The simplest solution probably is to use cron. Currently my main objection is handling "lost ...
0
votes
1answer
147 views

Getting fcron and RVM work together

I'm trying to make RVM and fcron work together. Apparently fcron does not read directly or indirectly any sort of env variables. Which makes RVM futile and scripts fail. I have this script which ...
1
vote
2answers
650 views

cron and at are not working

On my Mac (yeah, yeah I know. but my Linux box is at work) for some reason cron and at don't want to work. They both register that jobs have been added, with no syntax errors or any qualms at all. ...
2
votes
2answers
989 views

Cron job not working consistently

I have a cron job: 1 0 * * * /usr/bin/wget -q -O /dev/null 'http://123.456.78.90/index/parsedata?&today=1' It should gather a bunch of data from the DB at 12:01am each day, organize it for use ...
1
vote
0answers
620 views

Set the from address on emails from cron/Set default from address for sendmail

As a normal user I can send email, either from the commandline or from PHP. But when a cron job has error output, sending of that email fails (I have a MAILTO=me@example.com at the top of the ...
4
votes
3answers
6k views

Timezone issue with cron

My cron jobs are computed one hour later compared to server time. I don't understand what is going on. My configuration is the following : Server time : Europe/Paris In /etc/default/cron I added ...
1
vote
1answer
512 views

Background Jobs from cron

I am running a cron on every two minutes. From the cron I am running other shell scripts in background with "&". After cron exits spawned shell script process still runs, this is desired behavior. ...
-1
votes
1answer
457 views

Running transmission-gtk under cron

I have a problem with cron on Ubuntu 10.04 and 11.04. crontab -e I have typed: 49 22 * * * /usr/bin/transmission-gtk I have also tried: sudo /etc/init.d/cron restart pgrep cron
2
votes
1answer
162 views

cron job not executing

I have a cron job that is supposed to run a script every 15 minutes. */15 * * * * /path/to/script.sh I checked in three hours later and found that the script never ran, even once. Earlier I tried ...
-1
votes
2answers
1k views

How do I create a wake up script using PowerShell? [duplicate]

Possible Duplicate: Alarm clock software that can turn the computer on? I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs ...
0
votes
2answers
7k views

how do I see the history of crontab?

I've read a few posts on the web, gone and looked for the file they are mentioning and haven't found it. I'm in Ubuntu 11 and trying to troubleshoot a cron job that isn't running, even though I have ...