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
0answers
44 views

Can I set up a cron job on Ubuntu Phone

This is the first question I have asked on askubuntu. 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 ...
2
votes
0answers
112 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
0answers
9 views

Vixiecron doesn't allow disabling of emails, how can i disable cron emails globally?

Vixiecron doesn't allow disabling of emails, how can i disable cron emails globally? Every time the cron runs there are some sendmail processes being created which take our machine to huge high ...
1
vote
0answers
8 views

Any reason why Ubuntu's man page on crontab(5) is less informative?

Why is the man page for crontab(5) at manpages.ubuntu.com less informative than corresponding man page at linux.die.net? Compare The "sixth" field (the rest of the line) specifies the command to ...
1
vote
0answers
31 views

Make CronTab not asking for id_rsa keyword when running in terminal

I like to do some git pull inside a script and see see output of it. So I made up this cronjob to test: DISPLAY=:0 * * * * * mike /usr/bin/gnome-terminal -x zsh -c "/var/www/up.sh; zsh" ...
1
vote
0answers
26 views

Configuring logrotate without root access (per user log rotation)

How best can logrotate be configured, on a per-user basis, to rotate files in the home directory of the user, under control of a per-user 'crontab -e'?
1
vote
0answers
44 views

Using a NAS as a collective dump, with symlinks for whoever uploaded each file

I have a local machine that was sitting around & doing very little, so I decided to turn it into a NAS (Network Attached Storage) machine, with a 40GB disk for Ubuntu (13.10), a 160GB disk that's ...
1
vote
0answers
65 views

Why won't cron run my sh script?

Used gnome-schedule to create a script to set my headset as the fallback audio device because it keeps unsetting it when the headset gets disconnected or pc goes into sleep mode. Anyway, crontab is ...
1
vote
0answers
418 views

Ubuntu 12.04: Crontab stopped running/Curl and cron blocking?

I have created a number of PHP daemons in the past and my general procedure is this: Run a cron job every minute to start up a new instance of the daemon Create a log file Check to see if enough ...
1
vote
0answers
187 views

Please install an MTA on this system if you want to use sendmail!

I get this message in /var/log/apache2/error.log everytime a cronjob on my desktop wgets a php page that tries to send an email. How can I install a dummy so this message is gone? I already have ...
1
vote
0answers
113 views

Can't stop LAMP graceful restart

I just got my first LAMP up and running, everything works fine except that my server is restarting itself every sunday. When I read the logs I see "Graceful restart requested, doing restart" Should ...
1
vote
0answers
962 views

Does ubuntu support “@reboot” in crontab

Does ubuntu support "@reboot" in crontab ? I find documentation suggesting it is supported, but web chatter asserts it is not. I cannot make the @reboot section work. The "after midnight" section ...
1
vote
0answers
31 views

crontab command in the 2nd line doesn't run

I have these 2 lines in cron tab. The 1st command executes but the 2nd one doesn't. It just doesn't run. No traces in log. I have a new line (enter) at the end. I have restarted the cron service ...
1
vote
0answers
63 views

Backup regimen - is this plan any good?

I have a desktop that has some valuable personal and financial records, photos, etc. I installed a second drive formatted ext3 called 'internalbackup'. I've been using a variety of backup programs, ...
1
vote
0answers
47 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 ...
1
vote
0answers
109 views

How to trigger anacron start if USB drive connected

There is a script in /usr/lib/pm-utils/power.d/anacron which restarts anacron if leptops are connected to power. Is it possible to have a similar script restart anacron if (a certain) USB-drive is ...
1
vote
0answers
65 views

Need to send a simple .txt file to a couple email addresses

ive been trying to get this to work all night. mutt doesnt seem to work and I cant install mail or mailx packages because apt-get gives me errors about them not having installation candidate. What I ...
1
vote
0answers
460 views

Why doesn't duply work when set as a cron job?

I have a problem with a cron job which starts but doesn't complete. Running the command manually works fine. I already read the page about cron issues and solutions here on AskUbuntu, tried the ...
0
votes
0answers
7 views

PPTP won't connect from a cron command

I'm trying to work out why my VPN won't connect when the command is initiated from a cron triggered script when that same script and command otherwise work as expected. I have a remote server which ...
0
votes
0answers
19 views

crojob not recognizing ip command

I have this script to gather data trx rates. If I run this script normally, it executes fine. However, If I add this to cronjob to execute every hour, I get an error in the /var/log/ SERVER=`hostname ...
0
votes
0answers
11 views

wrong file owner

Syslog displaying the following: 04/06/14 05:16:01 PM loren-laptop cron[986] (system) WRONG FILE OWNER (/etc/crontab) /etc/crontab displays: Owner Me Is this a problem that requires fixing?
0
votes
0answers
18 views

Why cron.weekly started apt-xapian-index at 11AM instead of between 2-4AM?

I have redifined staring hours in /etc/anacrontab and /etc/crontab like following: --- my changes: 17 * * * * root cd / && nice run-parts --report /etc/cron.hourly 25 3 * * * ...
0
votes
0answers
10 views

Execute script when disk space is low

Is there a smart way to execute a script when disk space is low? I know I can manually check disk space, but it seems like a common problem to want to delete log files when disk space is low (for ...
0
votes
0answers
12 views

Anacron and suspend

Does an cron task, that is run with anacron run even when my system is suspended? I know that anacron will run a job regardless of whether my system is on or off, but I thought that the jobs get ...
0
votes
0answers
23 views

Poor battery life: cron jobs running even in suspend

I was trying to figure out why my battery was dying out really fast even when in suspend mode. I noticed that my cron jobs run even when my laptop is suspended. I do not want this behavior. Cron ...
0
votes
0answers
54 views

xprintidle doesn't work in cronjob. Why?

I have lxle (Lubuntu) 12.04 installed and I spent lots of time looking for working solution to make PC shutdown after some period of idle state. After checking many programs which haven't worked I ...
0
votes
0answers
35 views

Auto update in ubuntu 13.10 desktop

My question is very basic and foolish one.I installed ubuntu 13.10 desktop 32 bit. Now I want auto updates of security. I visited this Ubuntu help page. But I waited whole day to see whether my ...
0
votes
0answers
94 views

Cronjob for MySQL Backup Bash Script Not Running

I am trying to backup many MySQL Databases on a daily basis into a Single ZIP. The bash script works fine by itself (ran in normal environment), but when the Cronjob takes over it does not run. Infact ...
0
votes
0answers
295 views

Java -jar runs via shellscript but not via cron

I have a shell script that I want to schedule via cron to be ran every 10 minutes. The shellscript runs a jar file. If i run the shellscript via ./sensorrreader.sh it works just fine (creates a file) ...
0
votes
0answers
29 views

Cron not running script

I have a script that works when called: /usr/local/bin/myscript #this works fine Permissions for the file are: -rwxr-xr-x 1 root root 155 Jan 27 09:34 myscript I've added a line to /etc/crontab: ...
0
votes
0answers
86 views

@reboot crontab vs startup script

What is the difference between using @reboot cron and writing a startup script (a script in /etc/init.d) ? In which scenarios should one be chosen over another ?
0
votes
0answers
25 views

No cron job for root

I am trying to make source distribution(python package) which has setup.py file that deploys cron job using subprocess call. But Error is coming : No cronjob for Root Here is setup.py file : $ ...
0
votes
0answers
163 views

crontab doesnt upload file via ftp script

I Write script that make a zip file with /var/www Directory And mysqldump db And upload it via ftp And change mode to executable file And put It in cron tab but file doesn't upload !!! #!/bin/bash ...
0
votes
0answers
58 views

cron job exetue, but receive error + 500 internal server error

I created a cron job on my apache server's cPanel, every 5 minute push the script, with this command: lynx -source http://mydomain.com/...c_html/xxxx.php and that script does not execute.. i receive ...
0
votes
0answers
30 views

Logrotate throws a SQUID4 error

I am using squid3, on my Ubuntu 12.10 server, for some months now. I never had problems like that until 4 days ago. Since then I get this mail every day: >Topic: Cron: test -x /usr/sbin/anacron || ...
0
votes
0answers
180 views

Running a script with cron

When a script is run manually, it works with no errors. The script is to add a user. However when run in cron, I get emails saying: sudo: no tty present and no askpass program specified Sorry, try ...
0
votes
0answers
95 views

java applet at startup with crontab not working

I know the question is asked in many variants and I have read them, but still cannot find an answer to my problem. I have a jar file which I want to run at startup as root. I have tried in rc.local, ...
0
votes
0answers
35 views

Ubuntu cronjob fails to run after first run

I'm currently running this script in a cronjob every thirty minutes or so: */30 * * * * wget "http://mydomain.com?import_key=acxmlK&import_id=1&action=processing" It's a script used to ...
0
votes
0answers
58 views

Mythbuntu Database Backup - changing the number of backups saved

I would like to change the number of database backups saved from the default 5. I have already moved the mythtv-database script to /etc/cron.daily and it is creating a backup each day instead of ...
0
votes
0answers
207 views

Networking not starting - OpenVZ default Ubuntu 12.04 Template

I have been using HyperVM to deploy OpenVZ Ubuntu 12.04 server instances. Unfortunately, they all boot without networking enabled. I tried inserting int the crontab: @reboot /usr/sbin/service ...
0
votes
0answers
33 views

need at jobs identified by name (advanced atd daemon)

Sometimes I'd like to delete or overwrite (or simply cat) an at job. Unfortunately, the at jobs are identified by a sequential number (file in /var/spool/cron/atjobs), which makes those operations ...
0
votes
0answers
433 views

crontab -e unable to save

I am trying to save a cronjob to the crontab file. If i just run: crontab -e, it opens up the file in sublime but when i try to save, it pops up with: Unable to save /tmp/crontab.FKjsLq/crontab If ...
0
votes
0answers
420 views

Make the daily log rotate run on exact time

I have Ubuntu 12.04.2 LTS server. My daily log rotations which are listed under /etc/logrotate.d/ are executed at the morning around 7:00 am, but it is not on exact time, each day it changed on range ...
0
votes
0answers
41 views

How to prevent crontab command line output from interfering with other text?

I have a crontab job set for every 30 minutes and I have it so that the output is redirected to the command line. My problem is that this output is interrupting whatever it is that I have on the ...
0
votes
0answers
58 views

Script is not getting executed when running from crontab

I have a simple shell script that calls a pearl script and redirects its output to a text file. When I run this from shell it exceutes, but when I do this from crontab, it does not. #!bin/sh ...
0
votes
0answers
195 views

crontab doesn't save the buffer

invoking crontab via crontab -e allows me to write a crontab. when I press ^X, Y, then ENTER, nano tells me [ Cancelled ] at the bottom of the screen. however, sudo crontab -e works. how am I ...
0
votes
0answers
48 views

Can job instances of the same CRON job be executed at the same time?

Suppose I have a cron job that runs every 5 minutes, i.e. a python script that updates a DB. If the cron job takes more than 5 minutes to complete will another instance of the same job be executed ...
0
votes
0answers
65 views

How to schedule commands in crontab?

I have this simple task scheduled in cron but it wont happen, the commands I used are crontab -e than added the following line 16 * * * * echo "task working" But the command isnt runnig every ...
0
votes
0answers
50 views

xgamma run on cron

I am trying to set a cron job to run every minute. I have a script in a directory in my home directory. Inside the script is: #!/bin/bash /usr/bin/xgamma -gamma 2.0 I actually prefer 0.65, but I'm ...
0
votes
0answers
280 views

Script giving error of permission denied OSerror 13 from cronjob?

I have written a script from the python to automate scan.I have used nessus for that and used subprocess module in python.Probem is this it's running from the cli bash.... but when i put that script ...