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)

0
votes
1answer
14 views

Crontab does not work

I have 2 crontab commands. The cron below works fine: 00 19 * * * cp -a /home/kmportal/VirtualBox\ VMs/cyn.in-disk1.vmdk /media/windowsshare The cron below does not work after I add the time ...
0
votes
1answer
16 views

Using unattended-upgrades or cron for automatically updating packages from different sources?

I'm running Ubuntu 14.04 + XBMC on a HTPC and now I want to setup automatic updates on this machine. On top of the normal Ubuntu sources, I have also 3 other sources installed, of which I want to ...
0
votes
0answers
15 views

unwanted periodical restarts

A couple of weeks ago, I thought I solved the cron job problem which is responsible for unwanted periodical restarts in 60 mins. I used acpi=off line for this. But now the problem occurs again with ...
0
votes
0answers
4 views

Teradata BTEQ on ubuntu

I am trying to set up a cron job server utilizing BTEQ to run our daily builds. I installed pretty much everything I could find on the TD developers site via alien as the packages are rpm, but I didnt ...
0
votes
1answer
35 views

Cron job not running - postfix/sendmail error

Here is my content of sudo crontab -e @hourly /home/userName/ntpdate.sh The content of my script (ntpdate.sh) //.25 is my ntp server echo "Current time is $(date), " >> ...
1
vote
1answer
99 views

How to tell cron to find paths to tools?

Is there a way to indicate to cron how/where to find (paths to) tools such as python, nmap, php and so on? I ask this because when I schedule a job using crontab -e, I always need to specify the ...
1
vote
1answer
38 views

cron does not work

I read about cron. I edited it by running crontab -e and I added this line: * * * * * php /var/www/createFile.phpWhen I run ls /tmp/ I do not see any file create by my php script. Why does not it work ...
0
votes
1answer
23 views

rtcwake cron does not work

I intend to put my computer to sleep every night and make it wake up again next morning. I found that rtcwake would serve my purpose. However putting it in the crontab does nothing. Following is my ...
1
vote
1answer
37 views

How to schedule an irregular backup script requiring user confirmation

I have a backup script which requires user interaction. I would like to schedule it to run, say, once a week. The constraints are that (1) the computer boots straight into Gnome and is turned off ...
0
votes
0answers
11 views

What is the difference between postfix and mailsutils?

I am attempting to set up an AWS EC2 with a simple mailing service for my crontab. And I have postfix set up, but when I used the "mail" command it did not work. So I installed mailutils as ubuntu ...
1
vote
0answers
11 views

Which tasks in “Scheduled Tasks” (gnome-schedule) use anacron versus cron?

I am trying to run a command once a day, but my machine is not always on. anacron says it's meant for such purposes, but I prefer to use the Gnome Scheduled Tasks GUI program. If I schedule a task to ...
0
votes
1answer
10 views

Start a transmission-gtk using a cron job

I'm trying to start my torrent client using a cron job. Following is the job I added to crontab file(contab -e) 00 20 17 07 * transmission-gtk I waited for the time but transmission-gtk didn't ...
1
vote
2answers
59 views

Crontab Instances

I have been doing some research on scheduling tasks and what not. I came across the crontab command function. Is crontab a file that is created or is it a command? If it is a file, then how many can ...
0
votes
0answers
14 views

Doubt : locate command: reschedule to every 2 mins

Will mlocate cron scan complete file system in scheduled time? Or will it just merge databases whatever files/folders added between scheduled time? I am planning to reschedule mlocate cron job to ...
0
votes
2answers
380 views

Cron Job Not running after proper setup

So I created a cron job as shown below: GNU nano 2.2.6 File: /tmp/crontab.uNoEXy/crontab # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be ...
0
votes
2answers
8k views

how to set a Cron job to run a shell script?

I had set a cron job 20 * * * * /usr/bin/sh /home/lucky/myfile.sh the main problem is that at the schedule time ,there is error "mail have sent to /var/spool/mail/lucky" the contents of ...
1
vote
3answers
868 views

Who is sm-msp-queue and how does he/she/it flood my /var/log/syslog?

I run Linux BeagleBoard-xM 3.12.5-armv7-x10 #1 SMP Fri Dec 13 03:06:20 UTC 2013 armv7l armv7l armv7l GNU/Linux and my /var/log/syslog gets flooded by messages like Jan 11 10:21:09 BeagleBoard-xM ...
16
votes
4answers
23k views

Where is the user crontab stored?

Since upgrading my user's crontab has been wiped out. This is not the first time this has happened this year and it's a pain restoring it each time. I'd like to be able to back up the crontab for my ...
2
votes
2answers
110 views

What does this (root) CMD line in system.log mean? Why is it there?

What does it mean? (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin ...
2
votes
2answers
56 views

sending email from cron with correct format

I am stuck when sending email in correct format from cron jobs executing my php script which fetches records from mysql database. i have a php script which fetches records from database and renders ...
-1
votes
0answers
17 views

Cron job for email zend framework 2

I have a question. A week ago a started learning how to work with the Zend Framework 2. I asked a few questions about it before, but now I'm at the part of the cron jobs. I wanted to try that, so i ...
1
vote
1answer
61 views

Run the script file after 5 or 10 min after restarting the system

I have created a ruby script file that checks the connection present or not. For example checking port 22 is opened or not. Firstly I tried with cron job as follows @reboot find ...
134
votes
31answers
191k views

Reasons why crontab does not work [closed]

Often, crontab scripts are not executed on schedule or as expected. There are numerous reasons for that: wrong crontab notation permissions problem environment variables This community wiki aims ...
1
vote
1answer
2k views

Why my weekly anacron job is not executed?

I'd like to use anacron for a weekly job on Ubuntu 13.04. Here's my /etc/crontab: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to ...
1
vote
1answer
35 views

Error starting python file using cron

I'm trying to get a python file to run every 2 mins, I'm using the following cron command but the script never runs. Would anyone know what the possible errors could be related to starting a python ...
0
votes
2answers
2k views

Cron not working

Wrote a short shell script "wallch.sh" to randomly change my desktop background: DIR="/home/user/Wallpapers" PIC=$(ls $DIR/*.jpg | shuf -n1) FIL="file://" gsettings set org.gnome.desktop.background ...
0
votes
1answer
13 views

cronjob to remove directories that are smaller than x in size

I want to run a cronjob every 6 hrs that deletes directories smaller than 200MB. I know dh command would do the job, but i'm not sure how to use the command. Any help is appreciated.
12
votes
7answers
48k views

How to run scripts every 5 seconds using cron?

I would like to know how to run a script every 5 second. I know that cron can do every minute. How do you get intervals below that?
2
votes
0answers
54 views

Can I set up a cron job on Ubuntu Phone

I've been looking around, and can't find if Ubuntu Touch can run cron. So my question is: Can it? Also does it have a standard set of bash utils installed?
0
votes
1answer
32 views

Crontab not run job and change job

I've set 'Crontab' with root user and -e key but Cron is not running my jobs and after little time, my job is removed and replaced with other text!!!! The jobs set: # m h dom mon dow command ...
2
votes
1answer
51 views

Why is my cron script to dump a MySQL database not executed?

I have the following cron job: * * * * * /home/db_backups/test.sh which runs fine and is executed every minute. If I check with sudo grep \(CRON\) /var/log/syslog I get the following: Jun 23 ...
116
votes
5answers
136k views

How do I set up a Cron job?

How do I add Cron jobs in Ubuntu?
0
votes
0answers
28 views

Cron Doesn't run the job

I am trying to add a job to cron using sudo crontab -e Using * * * * * root /usr/bin/getmail doesn't work. Ubuntu version is trusty I get confirmation crontab : installing new crontab. I ...
1
vote
2answers
18 views

crontab with espeak doesn't work when sound card is busy with google hangouts

There may not be a solution to this, but here's the problem nonetheless :) I'm on Ubuntu 14.04, using latest Chrome as my browser My sound card is busy being used by Google Hangouts My crontab is ...
2
votes
3answers
79 views

Cleaning up yesterday's files via script

I would like to run a cronjob that ran every morning to move the files that were created on the previous day in a specific directory to be moved to a folder that has been created with the previous ...
1
vote
1answer
72 views

Editing Gsettings unsuccesful when initiated from cron

I must have a blind spot, but I cannot find what it is. I made a small python script that removes VLC from the sound menu. It runs perfectly in any way I run it from the terminal or from a launcher ...
0
votes
1answer
107 views

update from 12.04 to 14.04, cron stops working

I am having trouble of using cron after updating from 12.04 to 14.04. here is my log: May 8 11:00:01 imanqasrina CRON[30716]: (sicksand) CMD (bash $HOME/bingwallpaper/bingPaper_v1-0.sh) May 8 ...
1
vote
1answer
42 views

Understanding the at-command to schedule another command

I use cron to schedule things in Linux, but recently I discovered the "at" command. sudo apt-get install at I don't understand the scope from which this command operates: How would you schedule a ...
-1
votes
2answers
45 views

sendmail with cron job

a=$(df -h /mnt/smb | tail -n +3 | tr -s ' ' | tr '%' ' ' | cut -d ' ' -f 5) echo $a if [[ $a -ge 30 ]]; then cat /etc/diskspace/text.txt | sendmail test.gmail.com fi Hallo guys this is my ...
-1
votes
1answer
2k views

Cron job every second

How can I run a PHP script every few seconds in Ubuntu Server? (bonus: How can I run random within the cron script, e.g. every 3 seconds + random(3 seconds) )
0
votes
1answer
19 views

Does duplicity detect when a Backup Is Already In-Progress?

Any time you schedule a recurring backup, it is always possible for a previously-initiated-backup to run so long that the next scheduled backup gets initiated before the previous backup completes. ...
0
votes
0answers
22 views

Start Skype on boot with crontab [duplicate]

I includes these entries yet Skype don't manage to start on boot: @reboot /usr/bin/./skype @reboot /usr/bin/skype
1
vote
2answers
62 views

Starting Rhythmbox via crontab

I'm getting tired of this issue now, because every version of Ubuntu needs to be treated in another way, but in 14.04 I don't know what to do anymore. My problem: My PC is starting automatically ...
-1
votes
1answer
18 views

difference between atjobs & atspool directory

when i was working with ubuntu 12.04 at command i noticed that there are two different directories /var/spool/cron/atspool and /var/spool/cron/atjobs . I want to know what is the difference between ...
1
vote
1answer
437 views

Cron job running successfully suddenly reports script is not found

What might cause cron to suddenly report a file it is supposed to run is "not found," when the file hasn't been touched, and in fact, the entire system hasn't been touched since it last ran ...
0
votes
0answers
20 views

cron to email when a psql stops recording data

I have a PSQL setup and records data every 10 minute or less. The connection sometimes dies and it results is logging failure and I have no idea when that happens. I want to create a cron job to email ...
0
votes
2answers
66 views

Cron doesn't execute one of the scheduled jobs

I'm using a lubuntu desktop, distribution Ubuntu 13.10, i686. This is my problem: in the job list scheduled by cron a job hasn't effect, but in /var/log/syslog its execution is traced. This is the ...
3
votes
1answer
88 views

Bash script runs fine, but not in cron

I have a script that's supposed to record a shoutcast stream for an hour, convert it to mp3, and then save it. The script runs correctly when I run it from the terminal, but I can't seem to get it to ...
1
vote
1answer
40 views

Running a Screen instance of a program as non-root

I've got a dedicated server (Ubuntu 12.04, no GUI) set up to launch an instance of McMyAdmin and attach it to a screen instance every time I reboot the hardware. I have the command saved to root's ...
2
votes
2answers
52 views

cronjob output will not show in terminal

I've been trying to get the output of a cronjob to show in the terminal and I can't figure it out. Every minute I would like to run the script /usr/games/sl and have it output in the terminal, and ...