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)

3
votes
0answers
237 views

unattended-upgrades error: “/etc/cron.daily/apt: DB Update failed, database locked”

Ubuntu 14.04.1 LTS Since installing unattended-upgrades, the following error message is received daily: From root@xxxxx Thu Aug 28 06:36:06 2014 X-Original-To: root From: root@xxxxx (Cron Daemon) ...
2
votes
0answers
35 views

Running Chrome extension periodically using a cronjob

I have built a chrome extension that performs a set of actions on a random webpage. The extension seems to work fine and I plan to run it on a VPS running Ubuntu with a XFCE desktop environment. Now ...
2
votes
0answers
112 views

Tiger: `rtm` is listening on socket XXXX

On my Ubuntu serve 12.04 LTS, Tiger is reporting a lot of stuffs like this: OLD: --WARN-- [lin002i] The process `rtm' is listening on socket 60404 (UDP) on every interface. NEW: --WARN-- [lin002i] ...
2
votes
0answers
60 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?
2
votes
0answers
132 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.
2
votes
0answers
634 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 ...
1
vote
0answers
137 views

Crontab not executing script with cURL

I have a cron that's set to run every ten minutes that works fine if I execute the file manually by entering php register.php But, my cron will not execute this file once it includes anything cURL ...
1
vote
0answers
47 views

Cron, xconf-query and Xubuntu 14.04

I have updated my Xubuntu to the 14.04 version. Unfortunately, I am experiencing a problem. I have a script, named earth, updating the wallpaper of my desktop. Here is the code #!/bin/sh nice -n 19 ...
1
vote
0answers
107 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 ...
1
vote
0answers
47 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 ...
1
vote
0answers
194 views

Allow user to run programs as root without password. Would it be the correct solution to my problem?

I have a server which I need to be running certain programs permanently; I'm having problems with two of them and I'm not sure if the solution I've found would be the correct one, so I ask for opinion ...
1
vote
0answers
134 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 ...
1
vote
0answers
169 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 ...
1
vote
0answers
21 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
48 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
117 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
80 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
123 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
568 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
131 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
38 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
72 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
63 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
172 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 ...
0
votes
0answers
13 views

Problems running tcpdump with cron

I tried to create some simple scripts so I could have tcpdump stop and start daily with the date as the filename for logging purpose. I made two things to do this killDump-- kill $(pidof tcpdump) ...
0
votes
0answers
6 views

CRON @reboot vncserver?

Is there any reason per-user cronjobs running vncserver @reboot wouldn't run? When I reboot the machine and look into /var/log/syslog, I see the jobs being run, then cron saying (CRON) info (No MTA ...
0
votes
0answers
28 views

Crontab wont run this script!

I am trying to run this script as a cron job to enable a weekly back up of my mediawiki site. Running on Ubuntu server 14.04. It simply will not run. The scipt is running from the root folder of the ...
0
votes
0answers
15 views

reprepro - Is there any chance to enter the passphrase via bash-script?

I use "reprepro" for getting the latest Debian packages out of my local repository, which works fine manually. Now I need to automate this process through a cron job but the reprepro passphrase is a ...
0
votes
0answers
5 views

munin send mail about permission denied to munin-update.log

I have install munin, but CRON send me mail about an error: Can't open /var/log/munin/munin-update.log (Permission denied) at /usr/share/perl5/Log/Log4perl/Appender/File.pm line 103. but the ...
0
votes
0answers
15 views

Backup database with mysqldump

Hello i use mysqldump with crontab for save my database each hour but after one day i have 24 files What is solution for auto delete if more 5 files ? And what is chmod for folder backup for security ...
0
votes
0answers
12 views

rsync never terminates and makes Tb size snapshot directories

I have a cron job that runs rsync every day to download data from a server. It was working fine until the space allocated for me in the server was changed (probably increased). It happened as I was a ...
0
votes
0answers
22 views

Run cron job to execute a script when a particular file is updated

I would like to automate a process which requires running a script to generate some files. To do this I thought that adding a cron job to run this script would be great. But I want cron to run the ...
0
votes
0answers
18 views

Many CRONs processes

My system from couple days have some strange issues. Main thing is that I can't ssh for most of my day. I noticed that is connected with amount of CRON porcesses. In crontab I have about 90 records ...
0
votes
0answers
21 views

pmcmd not working with Ubuntu crontab or gnome-schedule

I have scheduled a shellscript which interns calls an informatica workflow with PMCMD command. when the script executed manually, it is starting the workflow properly but when the workflow is ...
0
votes
0answers
53 views

Scheduled Cron Back up from EC2 to S3

I have created a script for scheduling sql back ups and store in Amazon S3. Below is the script that I used for taking backups. DATABASES="testdb" testdb_USER=root testdb_PW=root ...
0
votes
0answers
44 views

crontab and running nmcli in a script

I am trying to come up with some way of making a persistent VPN connection, so if it drops (as it does from time to time) the connection will be remade. I though using crontab would be the best way to ...
0
votes
0answers
27 views

Auto Update Even When Laptop Lid Is Closed

I am trying to follow this guide for auto updating Ubuntu. I am using the Advanced Aptitude option. My problem is that I am trying to do it on a laptop and cron doesn't work when the lid is shut. I ...
0
votes
0answers
16 views

truecrypt in bash script called with crontab

I have a bash script that uses truecrypt to mount a volumn. The command is the following: RESULT=$(truecrypt $FILE 2>&1); When I execute the script with bash script.sh I receive the ...
0
votes
0answers
30 views

Configure cron to include FQDN in email

We have machines named like so: serverA.subdomainA.TLD.co serverA.subdomainB.TLD.co Works fine for us, except when I get an email from cron, the messages looks like: From: root@tld.com ...
0
votes
0answers
37 views

Reg: Cron job is not running

I have set my cron jobs in linux ubuntu. Cron is not running and even already set my mail id to test whether cron is working or not.Its not luck for me. How to fix this issue.
0
votes
0answers
28 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
0answers
26 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
0answers
18 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
0answers
73 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 ...
0
votes
0answers
27 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
0answers
40 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 ...
0
votes
0answers
132 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 ...
0
votes
0answers
60 views

Starting services with custom xsession

I'm new to ubuntu. I've accomplished making chromium start at boot with xsessionrc file, but now I want to get a screenshot of the desktop every minute (which is just chromium basically). I've ...
0
votes
0answers
35 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
119 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?