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

How can I configure a second SSH key + user for a single server?

I have a SSH key which is passphrase-protected. Authentication to the server is by SSH key only, password authentication is disabled. Both the server and my desktop run Ubuntu 14.04 and authentication ...
1
vote
2answers
158 views

bash script to back up file [on hold]

I have a few files to be backed up. I need a script to check line number of a file and if it exceeds, say 8000 lines, it will simply zip it and name it with date prefix format. I need your help.
0
votes
1answer
55 views

How to launch interactive shell script in bash hourly with cron?

I put this line in the crontab: 1 * * * * DISPLAY=:0.0 /usr/bin/gnome-terminal -e /home/user/Desktop/mltpl The script is executable. If paste that command in the terminal--that is, the string ...
2
votes
2answers
43 views

Ubuntu 14.04 not running Bash scripts in /etc/cron.daily

I have a few scripts (that currently run in a CentOS system) I have moved to a new Ubuntu 14.04 system. These scripts are in the /etc/cron.daily to run once a day. These scripts are to run at the ...
0
votes
1answer
17 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
18 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
32 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 ...
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 ...
2
votes
1answer
41 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
37 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), " >> ...
0
votes
1answer
29 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 ...
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 ...
0
votes
1answer
13 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
0answers
17 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
0answers
15 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 ...
1
vote
1answer
38 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 ...
-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 ...
2
votes
2answers
57 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
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 ...
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
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.
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
52 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 ...
0
votes
0answers
30 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
81 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
votes
2answers
47 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 ...
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. ...
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 ...
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
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 ...
-1
votes
1answer
22 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 ...
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 ...
3
votes
1answer
94 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 ...
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 ...
1
vote
1answer
41 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
53 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 ...
1
vote
2answers
37 views

Running shellscript with cronjob is making problems, executing manually not. Ideas?

I made a shell script called /home/root/cron_grads.sh (chmodded 755) on my server. In this directory are more grads-scripts like 500hPa_p0.gs (644). My main script creates a temporary file ...
0
votes
1answer
36 views

backup without overwriting old backups

I'm using Ubuntu server 14.04 to backup all data from '/mnt/test/ folder' to '/home/john/' with TAR and archive to stuff.tar.gz and to make it to backup automatical. I use cron to backup it every ...
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
vote
1answer
20 views

Stopped Jobs error upon logout

There are times when I attempt to logout of SSH and I get something along the lines of: There are stopped jobs Not knowing what this is, I end up force quitting putty with the exit button in the ...
2
votes
2answers
52 views

Cannot run a GUI app from cron

After doing a "sudo su -" on an Ubuntu 12.04 notebook I did a "crontab -e", added this: * * * * * env DISPLAY=:0.0 /usr/bin/gnome-calculator and waited for minutes. Nothing Happened. I don't have ...
0
votes
0answers
18 views

Why is my server (12.04 LTS) catching up on a missed cronjob when woken over LAN?

... or what else is happening here? My homeserver running 12.04 LTS server is running on a wake/sleep schedule. I have a script "hibernate-starter" being run by root's crontab at specific times. The ...
1
vote
0answers
26 views

syslog time is not matching cron string setup

I am running many cronjobs in my server. When I was checking the syslog file to see the cron timing, it's completely not matching. Can someone help me to understand. syslog May 23 00:00:01 xxxxxx ...
0
votes
1answer
113 views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
4
votes
2answers
97 views

Why do I see a CRON session opening and closing every hour in /var/log/auth.log?

I am quite fresh with Linux as a whole, so this may be a silly question - but I would still like to know the answer This morning when I look at my /var/log/auth.log (which I've been told to make a ...
1
vote
1answer
72 views

Cannot get ntpdate cron to run

I'm trying to have a daily cron update the clock on my 12.04 server. I've followed the instructions here, but it still doesn't run: After a few weeks, the clock once again is off by a few seconds. ...
1
vote
1answer
93 views

How to execute livestreamer command with cron?

So the other day I installed Ubuntu 14.04 LTS at home in a partition next to Windows 7. As I'm not able to be at home to watch the Sailplane Grand Prix live as streamed on YouTube, I decided to use ...
0
votes
0answers
59 views

Full Automatic Scheduled Download in Lubuntu

As the Question Said,I want to schedule daily download at night -when I'm absent- I've doing this in past (windows xp) by using wake up feature in bios and in idm set schedule task and when arrived at ...