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

How to configure cron

I´m very confused trying configuring cron. I have a file named "crontab" in "/etc/crontab" which I edited to show (I want a daily task at 2:00 AM) As it claims is the "system wide crontab" # ...
0
votes
0answers
15 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
9 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 ...
2
votes
2answers
18 views

Cron : How to delete directory via cron

I have allready installed cron and here it is 1 0 * * * rm -R /path/to/my/folder/$(date +'%Y-%m-%d' -d "yesterday") I want to delete every day folder with "Yesterday name" LIKE "2014-12-14" ...
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
1answer
18 views

Crontab weird extensin error Unable to load dynamic library '/usr/lib/php5/20121212/peacjson.so'

I am wanting to find out how I might get to the bottom of a repetitive error that is being e-mailed to me every 9 and 39 minutes past the hour: PHP Warning: PHP Startup: Unable to load dynamic ...
0
votes
1answer
20 views

crontab not running simple job

i have a very simple command in cron that should reboot my system everyday. I modified crontab in root with the following: sudo crontab -e I then added one line to the end of the crontab: 0 1 * * ...
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
1answer
24 views

Shellscript creating directories in wrong direcroy when running from crontab

I have written the following code which will create directories with name format "nowt_hour_minute_second". In that directory another text file will be created with the directory creation time. Now I ...
0
votes
1answer
21 views

Launch url to start a script like a cronjob?

I have a website on mutualised hosting (server A). I need to run every minutes a script, I just need to go to http//www.mysiteserverA.com/run.php I searsch a solution automaticly run this script every ...
0
votes
0answers
13 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
1answer
22 views

What schedules logrotate?

I'm working on the program which creates a big log file. I want to handle it with logrotate. This is a configuration I put to /etc/logrotate.d/: /var/log/myproject.log { hourly maxsize 1 rotate ...
1
vote
3answers
50 views

Root crontab not running

For some reason, my root cron tab does not seem to be running. Trying to reboot device every night at midnight. Should be the following as root: crontab -e Then add: 0 0 * * * /sbin/shutdown -r ...
0
votes
0answers
23 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
1answer
19 views

Custom cron job filename for a package

I'm willing to create a cron job for a package but when I define it in debian/cron.d it gets installed as /etc/cron.d/package. I'd prefer to be able to change the name of the cron job to be something ...
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 ...
1
vote
1answer
30 views

This anacron cron job is sending emails to me - how can I redirect the output to null? [duplicate]

$ cat update-notifier-common #!/bin/sh set -e [ -x /usr/lib/update-notifier/package-data-downloader ] || exit 0 # Try to rerun any package data downloads that failed at package install time. ...
0
votes
1answer
20 views

How to implement in upstart that a service is preventive restarted every x hours?

I have a component --- started with upstart --- with a bug. The bug causes the application to freeze and unfortunately, it does not crush. As a temporary walk-around, I want to force the service to ...
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
1answer
38 views

run a script and return system to suspended or running mode

Somehow I cannot find how to do this common task. I want to run a (backup) script daily at certain time regardless whether the system is running or suspended and return to the previous state ...
0
votes
1answer
19 views

Why am I getting this annoying log messages.CRON[17405]: (root) CMD every minute

I have configured rsyslog.conf file to store log messages to mysql but I am getting some annoying log message in my MySql table. which looks like this. Nov 3 14:48:01 username CRON[17405]: (root) ...
0
votes
2answers
36 views

Crontab unable to open google chrome

I have written a chrome extension that performs a task whenever it is available, and for that I would need the chrome browser open at all times. My idea was to have a check say every minute if the ...
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 ...
1
vote
1answer
31 views

CronJob not working as expected

I generated a cronjob line for crontab -e with Crontab Generator: * */2 * * * curl http://www.example.com/cron.php >/dev/null 2>&1 I was expecting that it should run every 2 hours. But in ...
0
votes
1answer
28 views

Cron process sends email, where are these sent emails?

Ubuntu 14.04 I have an email process that sends an email via cron, using sendemail (which I believe is a Perl program that doesn't need an MTA). Where are these sent-emails stored? If they are stored ...
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 ...
-1
votes
1answer
39 views

Launch a .desktop file from boot

I have a .desktop file on my desktop that launches a html page. I need the .desktop file to run from startup, what would be the best way to do this? I have tried crontab and also the startup ...
0
votes
1answer
26 views

Cron emails no longer going to local 'chuck' account

Ubuntu 14.04 installed as a VM on a machine that sends emails, with attachments, via Perl 5.18.2. That part works because Perl talks directly to the SMTP server. Let's call the machine name ...
1
vote
0answers
27 views

Reading Cronjob Output [duplicate]

I have a task setup to run on my cronjob where I need to read the output. What I need from the output is the starting character (let's say A) and the ending character (let's say Z). A helps me ...
3
votes
2answers
128 views

Performance loss after 30 minutes

This one's baffled me. I have Ubuntu 14.04, 3 days ago (2014-20-10) it started slowing down. I've reproduced it by opening gedit and then closing gedit, when the issue is active it hits roughly 2 ...
1
vote
2answers
203 views

Cannot run bash script from crontab when it works from command line bash

I have a strange problem of being to able to run a bash script from commandline but not from the crontab entry for root. I am running Ubuntu 12.04. * * * * 1-5 root ...
0
votes
1answer
69 views

shutdown 5:30pm every day

for a five thirty pm shutdown, should I change this: 30 02 * * * /sbin/shutdown -h now to: 30 17 * * * /sbin/shutdown -h now see also: Crontab Shut down command didn't work
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
2answers
39 views

How to create a cron job to monitor the status of a port ?

I am trying to create a cron job that would allow me to monitor the status of a particular port and send out notification via email while it changes from listening state to anything else.
1
vote
2answers
168 views

How to make crontab email me with output?

How can I make crontab email me with the output of its jobs? I have MAILTO=redacted@yahoo.com.au above the jobs, but it doesn't work. I know I need to use something like Postfix or Sendmail but for ...
0
votes
3answers
111 views

Run rkhunter regularely on a desktop system

I want to get a warning on my desktop when rkhunter finds something odd on my system. I whitelisted some files and dirs that seem ok in /etc/rkhunter.conf so I get no warnings anymore. Now I want to ...
0
votes
1answer
55 views

git push script, only if difference

I've found some nice questions illustrating how one would write a script automating git push/pull with cron here and here, but I want to elaborate on that slightly. I only want to push/pull if there ...
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 ...
2
votes
2answers
191 views

Cron Job Creation

Okay, so I have had a quick look at the answers posted on this question and re-formulated my cron job. So, let me break this down as clear as I am able to: PC/OS | Shell Info I am currently running ...
1
vote
1answer
48 views

Question about CRON trim weekly

I have got samsung SSD and so TRIM is on automatically. However I am bit confusing about how TRIM cron weekly starts. According to cat /etc/crontab it says that CRON weekly will start at 6:47am (odd ...
1
vote
1answer
30 views

How do I change my cron loglevel to 7 from default value 1?

> man cron, tells me that the default log level for cron is 1; i.e. cron "will log the start of all cron jobs." I want to set that to 7, so I checked in all the wrong places, starting with the file ...
0
votes
1answer
87 views

Cron job daily not running

I'm having trouble with setting a cron job to run daily when I enter the script to /etc/cron.daily when I put it there it doesn't run at all like it should be doing. I setup a script so that it can ...
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 ...
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 ...
3
votes
1answer
117 views

How can I start a shutdown with cron,only if no download is in progress?

I would like to shutdown my computer half-past twelve every day and can do that with "echo "30 0 * * * /sbin/shutdown -h now" > myrootcron.sh",but what if I want to cancel that shutdown or leave it ...
2
votes
1answer
77 views

Cron jobs are disabled on clean installation of 14.04

I have a clean installation of Ubuntu 14.04 and in my /etc/cron.daily/ I see *.disabled files: -rwxr-xr-x 1 root root 15481 Apr 10 09:04 apt.disabled -rwxr-xr-x 1 root root 314 Feb 17 2014 ...
3
votes
1answer
216 views

Ubuntu 14.04 and playing songs from cron

I recently upgraded my computer to Ubuntu 14.04. After the upgrade the system no longer plays the few songs I had it play via crontab. The crontab lines look like so: 0 9 * * 1-5 ...
1
vote
1answer
64 views

Problems with MAILTO setting: server doesn't sent cron's e-mail

I have Ubuntu 14.04 with Postfix mail server. Php/apache can send e-mails. But i don't resive any messadge from cron. Here my setup: MAILTO=crantisz@gmail.com */2 * * * * wget -o /home/user/out.html ...