Cron is used to execute scheduled commands. It acts as a task scheduler on Linux and UNIX systems which will execute commands at specified times set by the user. Cron has a great deal of customization and is often used on server environments where common tasks are run on a regular basis.

learn more… | top users | synonyms (2)

2
votes
1answer
2k views

Is it safe to uninstall anacron?

I have my desktop system running continually without shutdown and I want to get normal times (3:01, 4:15, 5:30) for cron.(daily|weekly|monthly) jobs but when anacron is installed these jobs run at ...
2
votes
2answers
342 views

Is it possible to schedule the downloads required to upgrade?

I'd like to upgrade from 10.10 to 11.04 but my ISP has a data-cap, limiting the amount I can download. Thankfully, traffic between 2am and 8am doesn't count towards this cap, but I'm seldom awake at ...
1
vote
2answers
334 views

How to automate the following task?

Daily i wanna copy some files from a remote system and i have to put all those files in on a folder on that date say .Is it possible to automate this task? What we do presently is we log on to the ...
1
vote
2answers
166 views

How do I set time for use on a server where microseconds are important?

Lets say you have a server that stores records, and the time stamp that goes into the mysql/postgres/text-file/whatever is vital to be accurate (lets pretend it's a physics experiment, or bank ...
1
vote
1answer
1k views

Cannot get new job to run using /etc/crontab and /etc/cron.daily

I want to run a script on a daily basis, and figured that I'd use the same setup that the other cron jobs are configured on this server - by placing the script in the /etc/cron.daily folder. However, ...
1
vote
1answer
467 views

Where is my cronlog? [duplicate]

Possible Duplicate: Where is the cron / crontab log? While trying to Google this a lot of sources claims there's a cron log in /var/log but I have none. I'm fairly convinced cron has run ...
2
votes
1answer
147 views

gpilot-install-file in a cron job?

I have a cron job that generates some .pdb files, and I'd like to automatically queue them for installation at the next sync. Unfortunately, I haven't been able to get gpilot-install-file to work in a ...
2
votes
1answer
2k views

Cron user root or www-data?

I'm running a website on 10.04 and am not sure how to set up my crontab. Should I create it under root or a user such as www-data? Python, Postgres, Nginx.
10
votes
2answers
906 views

How to schedule time-of-day upgrades

I'm responsible for about 30 Ubuntu computers at a private K-8 school. We have only a 3Mbps internet connection serving the entire campus, and I would like to ensure that updates are done in the ...
5
votes
1answer
2k views

Schedule sending mail of a log file content

I have postfix mail agent installed and I've configured gmail relay and I could send mails from the terminal as below: root@statino1:~# mail -s "subject_here" my_gmail_id@gmail.com CC: <hit enter ...
0
votes
1answer
158 views

How to schedule an update?

I want to schedule my machine to run all my updates unattended at night, but this requires my authentication (which pretty much axes the unattended part). Would it be best to use a cron job or is ...
1
vote
1answer
335 views

How to download Ubuntu Server backups automatically?

I'm thinking of an investment in a new root server running ubuntu. Due to the fact, that the provider won't have extra backup-space, I need an other solution. Is it possible to download the server ...
1
vote
1answer
90 views

Can I push data from web to my Ubuntu?

I am trying to do something which involves pushing data to my Ubuntu 10.10 desktop from web (PHP) and somehow I can catch that data. Just like Push emails. Thoughts? Ideas? I know I can setup a cron ...
1
vote
1answer
1k views

Why is this rkhunter script sending empty emails?

I have started running rkhunter (a security monitoring tool) and I have finally managed to clear all of its warnings. Now, a cron job runs every day to monitor my machine. Rather than send me an ...
0
votes
2answers
919 views

How to automatically visit a website in the background after Ubuntu booted?

I wanted to know how to automatically visit a website in the background when Ubuntu loads. As far as I know w3m is for visiting web site from the console. That is why I am writing following command in ...
6
votes
5answers
9k views

What's wrong with my cron.hourly configuration?

Every hour I get an email with error like this, Subject: Cron <root@supa> root cd / && run-parts --report /etc/cron.hourly /bin/sh: root: not found Contents of /etc/crontab is as ...
4
votes
1answer
698 views

How to start a job at precise time?

I want to start a recording job at a precise time. As I understand cron only guarantees a job to be started within a minute. One possible solution is to start the cron job earlier and than wait until ...
1
vote
1answer
477 views

How to make a python script run in Anacron

I have a python script that I would like to run daily using anacron, but I haven't been able to get it to work. The script is in my home directory, and I have put a symlink to it in /etc/cron.daily/. ...
1
vote
2answers
2k views

How to interpret this crontab command?

I know that if I wrote in crontab -e following command 01 04 * * * somecommand then it will run somecommand at 4:01am on every day of every month. What happens if I wrote * * * * * somecommand? ...
3
votes
4answers
4k views

execute script after desktop loaded?

I want to execute bash script on startup that opens several terminals in different workspaces. Script works just fine if I call it from terminal, but it doesn't work if executed from crontab using ...
1
vote
1answer
2k views

How to move files over samba share with gnomevfs cli

Ok I am in the process of backing up my film collection to a NAS and I wanted to automate this as much as possible as I have to work at the same time. I am trying to setup a daily dump of ISO's ready ...
0
votes
1answer
2k views

What is proper setup for “anacron”?

I am running Ubuntu 9.10 and 10.04 on MediaTemple (ve) servers. On both of them, the anacron setup is broken, ... and they have been broken since I first installed Ubuntu. It has only come to my ...
3
votes
2answers
4k views

Is there a way to suspend/sleep via bash?

I have to get nine 46" LCD monitors (running Windows) to suspend/sleep at 8pm and wake at 8am every morning. It's been a bit of a mess trying to get the commands working, including the privileges. ...
3
votes
2answers
4k views

Cron scheduling: Is the hour argument in 24h format?

In order to run cron in the night at 4 o'clock I need to write 4 * * * *? And to run at 16.00 o'clock, it should be 16 * * * *? thanks
2
votes
1answer
2k views

How to automate mysql backups?

I want to automatize the backup of my databases and files with cron. Should I add the following lines to crontab ? mysqldump -u root -pPASSWORD database_name | gzip > /home/backup/database_`date ...
0
votes
4answers
451 views

How can I set up Ubuntu to install updates without asking? [duplicate]

Possible Duplicate: How do I enable automatic updates? I would like to have Ubuntu silently install updates every day or so. It it possible to set it to do so? Are there any potential ...
2
votes
1answer
746 views

Cron mail notification

I would like to disable crontab mail notification for one of my task... I run this task every minute, that means 1440 mail per day :S Can someone tell me if this is possible and how can I do this?
2
votes
2answers
2k views

Function of /etc/cron.hourly

If I create a script and then place it in this folder (/etc/cron.hourly), will my system run this script hourly? Or does my script need to begin with a command as well?
2
votes
3answers
473 views

Backup bash script is not gzipping its tarball

I have a bash script that runs as a cron to backup files on the server. #!/bin/bash FILE=/path/to/backup_$(date +%Y%m%d).tar tar -cf $FILE /backup/this /and/that /and/someotherfiles gzip $FILE When ...
3
votes
1answer
130 views

Using % in a cron command

Since the % has special meaning to cron, how do I use it as part of a command? I found this page http://www.hcidata.info/crontab.htm, which mentions piping echo and sed to escape the % and then ...
1
vote
2answers
3k views

How can I setup nightly backups via the command line?

I'm running Ubuntu Server and I'm looking for an efficient way of performing nightly backups of particular directories using cron. However, since the computer isn't always on, I'd like it to just run ...
23
votes
1answer
22k views

How do I make cron email my @gmail account

I have a couple of cron jobs that somethime produce error output and would like to get a notification in my "real" email account, since I don't use my user's mailbox in my Ubuntu laptop, but cron (or ...