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)

1
vote
0answers
63 views

Crontab not running a script

I have set my crontab to run 2 script. the first script is not running. I set up on the crontab -e not sudo crontab -e The error i have is this ...
1
vote
0answers
33 views

All commands in my crontab fail with “Permission denied”

crontab -e and crontab -l work just fine: $ crontab -l | grep -v '^#' * * * * * /usr/bin/env * * * * * echo 'Hello from crontab' However, I see two messages like this every minute in ...
0
votes
1answer
36 views

cron job not executing youtube-dl command

I want to use the "youtube-dl" command in a cron job to download videos fron youtube. Therefore I created the following cron job: 26 00 * * * /usr/local/bin/youtube-dl -o ...
3
votes
1answer
36 views

Rsync behavior in a cron script

I have an nfs device that creates checkpoint (backups) everyday. I want to use Rsync to copy these checkpoints to another device (Drobo connected via iSCSI). So I've run the script on a single nfs ...
0
votes
3answers
36 views

How to open a crontab file in c++

I am working on a QT application which makes the usage of crontab easier with GUI. But I am facing the trouble of including the jobs in the crontab file from my application . So how do i open a ...
1
vote
1answer
31 views

Startup script doesn't execute at startup

I have followed the tutorial here that shows how to setup the No-ip update program to start at system startup. I have done exactly as specified here, yet the program still doesn't start. Also, when I ...
0
votes
0answers
57 views

Boot randomly fails after upgrading to 13.04

A few days ago I upgraded Ubuntu from 12.04 LTS to 12.10 and then 12.10 to 13.04. After doing that, all things work perfectly, but sometimes the boot process hangs. It doesn't happen every time I ...
2
votes
1answer
59 views

Run two commands sequentially uisng crontab

My 3-year girl loves SuperTux. she couldn't control the mouse! so the game should run automatically on startup and after the game, computer should shut down automatically, too. however I put the ...
0
votes
0answers
17 views

Can't get MAILFROM to work in crontab on Ubuntu server 12.04

Is MAILFROM supported in crontab in Ubuntu server 12.04? Cron job errors are sent via exim ok, but the sender, root@localhost, is not acceptable. MAILFROM in crontab works fine on my Fedora Core 15 ...
0
votes
0answers
22 views

Cron ran but early

I have a cronjob to run at 3.15 to backup database but the file was saved at 2.15? here is the line in /etc/crontab 15 3 * * * root bash /home/user/backup.sh And the bash file #!/bin/sh ...
2
votes
1answer
38 views

Shell script runs fine by itself, but not in cron

I have a shell script that runs nmap on an address, and I want to have it do it daily for me. So I added a reference to it in my crontab. Unfortunately, for some reason it doesn't recognize the ...
0
votes
0answers
16 views

How to mark notifications about failed jobs sent by CRON

In previous CRON versions when cronjobs failed to run you would get an e-mail in /var/mail/user. This e-mail would contain a line like this: Subject: Cron script.py # JOB_ID_2 (failed) But CRON ...
-1
votes
4answers
154 views

Cron job to restart Apache

Ubuntu Server 12.04. I use: sudo crontab -e * * * * * root /etc/init.d/apache2 restart > /dev/null 2>&1 sudo restart cron And it doesnt work. How to fix it? So many docs in google,I need ...
1
vote
1answer
26 views

Kill a cron job from cron

I want to start the ubuntu update at night because internet is free at that time. and then kill the process in order to ensure that it does not download anything after 7:00 AM. Is there any way to ...
3
votes
1answer
33 views

How to run a cron entry periodically?

I have a line of script that works through terminal and works through cron to run one time: it downloads a file from the internet and saves it in a specific place named as the date it was found: cd ...
1
vote
1answer
69 views

crontab does not run

i have added a script to run every min like this crontab -e and then add this code * * * * * /bin/sh /home/user/Public/call.sh the code did not run then i restarted the cron sudo ...
2
votes
1answer
56 views

Script that opens webpage and records it as cron job

I need and have to create a script that takes webpage address and time in seconds as arguments. It records whatever is shown on the webpage - i.e. JavaScript and HTML content (Flash not required). ...
2
votes
1answer
39 views

How can I create popup windows?

I have a small script run by cronjobs to synchronize a git repository every 2 hours. The git will be pushed to the server with a constant message. How can I have a popup windows which ask the message ...
1
vote
1answer
47 views

Running two commands in crontab

I have this line in my crontab file */1 * * * * espeak 'foo' && espeak 'bar' But only half of it, first command gets executed every minute. While when I write this in the terminal it works ...
2
votes
3answers
164 views

How can I use Cron to run shells scripts at a fixed time?

I am wanting to learn cron and I searched for some quality tutorials. I found How do I set up a cron job. My goal is to have a folder on a network that will have sub-folders. Each sub-folder is a ...
1
vote
2answers
220 views

unattended-upgrades not running, /etc/cron.daily/apt missing

I have automatic-upgrades installed and configured, but it never seems to run, because there are always security updates waiting to be installed when I check. ...
-1
votes
1answer
109 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 ...
2
votes
2answers
61 views

create backup from directory

I would like to create backup from directory using cron. I wrote following command: cd path && sudo zip -r "backup-$(date +"%Y-%m-%d").zip" git/ && sudo mv "backup-$(date +"%Y-%m-%d").zip" /backup/ ...
0
votes
1answer
169 views

How to stop cron from mailing me?

I have setup a ssmtp server with my gmail username and password. After that i have been getting constant emails from my laptop to my gmail. Here the mails. The first one is somewhat like this: The ...
0
votes
0answers
77 views

Ubuntu for phones: fully functional shell?

Will “Ubuntu for phones” work with a fully functional, normal shell/terminal like in Ubuntu Desktop? I’m working with bash-scripts with the cron and lp commands, and I have problems with these ...
3
votes
2answers
36 views

Is it possible to list the actual commands that have been scheduled with `at`?

I'd like to be able to see exactly what has been scheduled with at. atq will list the job id, time to run, and user to run as, but not the actual task that will be run. Thanks! Edit I should add ...
2
votes
0answers
138 views

what can be causing /etc/cron.daily/apt to hang?

Lately I've been getting a mail from the server every day, Subject Cron <root@host> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) Body ...
2
votes
0answers
60 views

Need to setup email notification when system starts and shutdown

I would like to have the system send me a email notification everrytime the system starts or shuts down. I am currently running Ubuntu 12.10 I found this tutorial but I couldn't make it to work.
1
vote
1answer
56 views

running deja-dup as cronjob, BU disc not connected

I have a problem with my backup cronjob. I use these settings (as proposed in that post): 15 * * * * env DISPLAY=:0 /usr/bin/deja-dup --backup During runtime deja-dup says: Backup location not ...
0
votes
2answers
97 views

How to set up directory backup?

I have Ubuntu 12.10 installed running a LAMP stack for a small site I host. I need to set up a system for weekly backups of the /var/www directory where all of my sites are. What is the best possible ...
1
vote
0answers
25 views

Why are alerts still coming if a job is commented out in cron?

In cron entry I have disabled the ignite recovery tape backup. But still we are getting alerts as: The action /opt/osit/omniback/bin/check_make_recovery.pl failed Crontab entry : # Ignite ...
0
votes
1answer
146 views

root cron job not running

I am trying to configure automysqlbackup to run via a cronjob to backup my dbs nightly. When I execute sudo automysqlbackup from a terminal, the process executes as expected and creates the backup ...
1
vote
1answer
36 views

How to prevent automatic apt-get operations from running for a while?

In a production context, we run scripts to configure/customize the OS. It makes intensive use of apt-get (to install, remove, update, upgrade packages). Unfortunately it happens (especially just ...
0
votes
1answer
69 views

Thousands of pam_unix log entries in logwatch

My logwatch reports, within the CRON section, contain thousands of entries like those below. How can I either reduce the number of log entries OR have logwatch ignore them? Jan 30 18:49:01 ota3 ...
2
votes
0answers
103 views

Cannot get gsettings set to work at boot using cron, rc.local, or autostart

I am trying to "lock down" the computer by running a script at boot that turns lock on, lock screen after 10 min and require password, etc. I am using Ubuntu 12.04 I have tried editing crontab, ...
1
vote
1answer
90 views

Cronjob for security updates?

I'm having trouble creating a cronjob for automatic security updates on my ubuntu server 12.04. I separated the security sources into a different file, and then did this from within a cronjob: ...
0
votes
2answers
58 views

How to search the location of Shell Script

# 59 23 * * 1 sh /rsync01.sh # 59 23 * * 2 sh /rsync02.sh # 59 23 * * 3 sh /rsync03.sh # 59 23 * * 4 sh /rsync04.sh # 59 23 * * 5 sh /rsync05.sh # 59 23 * * 6 sh /rsync06.sh # 59 23 * * 0 sh ...
0
votes
2answers
79 views

Where should I start crond?

On my Ubuntu server (LTS 12.04) I would like crond to be running every time I boot up. Where should I configure this? I took a look at service --status-all and saw that cron was there, but it was ...
1
vote
2answers
86 views

Stop cron from mailing the user

I am facing an issue with Ubuntu server. I am running a PHP script using a cron job which executes every 5 minutes. This folder spool/mqueue is showing 112GB space. The scripts job is to fetch data ...
2
votes
1answer
60 views

What happens with cronjobs scheduled when the server is off?

I have an Ubuntu Server 12 which isn't on all day. In the /etc/crontab, I see that cron.daily, cron.weekly and cron.monthly are scheduled at times the server is off, usually. What happens with those ...
0
votes
1answer
213 views

Add cron job on startup from a script

I would like to add a command to be run at startup from within a shell script. For example, I run the script once and it adds the cron job, so from that time on, each time the OS starts, a specific ...
1
vote
2answers
332 views

Use /etc/aliases for outgoing mail relayed by postfix with local domain

I'm using Ubuntu 12.04 with postfix configured as satellite system that relays outgoing mail to Gmail. For sake of example, my registered domain is example.com I want root cronjobs' error output to be ...
4
votes
4answers
1k views

How to restart every 30 minutes automatically?

I would like to schedule a restart of my Ubuntu every 30 minutes. Is there any command or a graphical way to do it?
1
vote
3answers
196 views

Cron works, but scheduled job to open webpage in chrome does not

Updates START A friend of mine just answered this. I need to do this export DISPLAY=:0 && <my GUI dependent command here> Waiting for him to post the answer here. I have tried ...
0
votes
1answer
189 views

Daily server reboot cron?

I want to create a cron job which executes daiy at assigned time and it restart the ubuntu server. I try to add reboot only in cron, but it is not working, whereas it works when I try to execute it ...
0
votes
2answers
528 views

Wget Scheme Missing

When I run Wget from terminal with command wget targetfile.php I got error "Scheme Missing". What does it is suppose to mean and how to fix it? I googled but all links I found is speaking of drupal ...
0
votes
1answer
404 views

Crontab and Shell Script not Executing [duplicate]

Anybody any suggestions on why my crontab and shell script is not running. I have chmod +x my shell script and added the following into crontab -e */5 * * * * bash cd /home/jclark/scrips/ipcheck/ ...
1
vote
2answers
604 views

How can I disable postfix on startup?

I can't get cron to stop spamming me with completed job notifications. It's getting out of hand and starting to clog up my 'real' email server, so I'd like to just disable postfix while I figure out ...
0
votes
1answer
111 views

sqlite3 timestamp (current_timestamp) one hour off

I run a small crawler on a virtual ubuntu server, initiated by crontab hourly. Datetime is inserted by defaulting the date filed to TIMESTAMP DEFAULT CURRENT_TIMESTAMP. Table creation looks like ...
0
votes
1answer
43 views

Execure a random command from .txt file?

I have a Ubuntu server, and I'm trying to print a Twitter quote using the app "twidge". So I made a list of tweets on a .txt file. I want to print one tweet (per line) from that file and send it to ...

1 2 3 4 5 6