Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.

learn more… | top users | synonyms (2)

2
votes
1answer
38 views

CRON job running but no sign of it in any file

This is an odd one and I know that the answer will be something simple that I have over looked... I have inherited responsibility for a Linux server running an old version of Ubuntu 10.04, it has a ...
1
vote
1answer
63 views

how to stop a php-fpm process that started with a cron job but won't die

and thank you beforehand for reading this. I'm pretty new to linux and have just migrated from a shared hosting to a vps for my shop. I set up nginx with fpm and varnish, and some cron jobs to import ...
1
vote
1answer
22 views

Is it possible to make an individual daily cron run with UTC time while keeping the system localtime?

I have a cron script under /etc/cron.d as so: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 0 0 * * * root /usr/local/sbin/app_logrotate >> ...
1
vote
1answer
63 views

dhclient asking for new routing every 1500 seconds, removing my static routing, cron not working

I have a problem with cron job on my ubuntu server 12.04. I have two internet providers - one for fast speed, second - for local resources. So, I'm using command route to up the static routing for ...
1
vote
1answer
328 views

cron daemon forking multiple processes and running jobs multiple times

I'm running a bunch of cron jobs (set up using sudo crontab -e) on Ubuntu, and recently (though I don't know when to be sure) I'm suddenly seeing the same jobs appear to be run multiple times in the ...
1
vote
1answer
144 views

Cronjob not working properly on debian

I'm trying to run a PHP script everyday at midnight, so my cron has the following entry @daily /usr/bin/php /websites/xxz/misc/wU5HaFre.php /websites/xxz/misc/wU5HaFre.php has 755 rights, so it's ...
1
vote
1answer
114 views

How to I get rsync to exlcude a file pattern within an flock?

I have an rsync command that I run hourly via cron, and to prevent it from having multiple simultaneous rsyncs (should the previous hour's rsync still be running when the next hour comes around) I've ...
1
vote
1answer
89 views

Cron job sends out the same data every time despite changes in the database

This question is related to Gentoo Linux. I have cron job that runs every morning at 10AM. The cron job calls a bash script which in turn calls a groovy script that queries the database for a column ...
1
vote
1answer
110 views

Linux cron spamming me then stops about php/suhosin

My server emails me when any messages goes to root. cron sends me messages. Today I got over 300 emails from my server all of which are PHP Warning: PHP Startup: Unable to load dynamic library ...
1
vote
1answer
120 views

script executing perfectly in terminal but not in cron

I setup a script for to take an mysql db backup everyday on a specific time, so now the cron is running perfectly it executing the script without problem but the problem is db backup file is not ...
2
votes
0answers
83 views

jenkins security settings for multi-tennacy

I am interested in Jenkins for systems administration. (We are not that interested in the building capabilities at this time, even though it is the main use for it) Its ability to chain jobs that ...
1
vote
0answers
41 views

Root cron job can't read file from /root/

I've got a cron job in root's crontab defined like this: 0 1 * * * /usr/local/bin/tarsnap-backup-script > /tmp/tarsnapcron.txt 2> /tmp/tarsnapcron.err The script is a python script that ...
1
vote
0answers
24 views

Won't keychain --clear in .bash_profile interfere with cron jobs?

Keychain tutorials recommend adding /usr/bin/keychain --clear to ~/.bash_profile to only allow cron jobs to use passwordless login. I'm not sure I understand how this works. If I take it right, the ...
1
vote
0answers
19 views

crontab not outputting to log when cronlocks removed on some files

I'm running a variety of crontab curl requests and I'm not sure why SOME of them stopped outputting the contents to log files. The only change I made was removing cronlocks from all of the entries ...
1
vote
0answers
51 views

Rotate svnserve logs; HUP needed?

I have SVN running on CentOS Linux 6.4 with svnserve and pass --log-file=/var/log/svn.log in the config file. This log is very large now and I need to start rotating it. I figure to add it to ...
1
vote
0answers
191 views

mysqldump not working/running via cron job

I have a crontask which runs at 1am every morning and dumps all databases. 0 1 * * * /var/backups/dumpit.sh 2>&1>> /var/backups/dumpit.log The dumpit.sh source: #!/bin/bash ...
1
vote
0answers
369 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
1
vote
0answers
720 views

Logrotate doesn't work from cron on CentOS

I have lograotate configured on CentOS 6. It works fine when I run it manually, but with CRON it doesn't work. Cron says in its logs: "All fine, I run you command" but nothing happens. Details: cat ...
1
vote
0answers
34 views

Synchronising local XML files with Remote FTP and Vice Versa

I have developed a website in php/codeigniter that takes data from sage xml files. I have SAGE xml files on my remote sever that I am using on my website for data extraction.I am reading and writing ...
1
vote
0answers
122 views

Intermittent sudo failure - SuSE 10

We have a longstanding production issue where cron on certain servers periodically report the following error- sudo: uid NNN does not exist in the passwd file! The user does exist, in fact it is ...
1
vote
0answers
95 views

rkhunter (1.3.8), crontab, ubuntu 12.04.1 — Very strange behavior

1.3.8-10 Rkhunter, Ubuntu 12.04.1 I have a strange problem with rkhunter. I haven't found anything helpful after googling extensively... for days. If I run rkhunter from crontab I'll get a bunch of ...
1
vote
0answers
48 views

Swatch cronjob won't execute

I'm trying to execute a swatch command via crontab in Ubuntu 10.4. The command works perfectly in the command line but not in cron. Here is the command : /usr/bin/swatch -c ...
1
vote
0answers
64 views

Tools for managing crontab load

I am running a large number of servers that crash periodically because cron jobs have been managed badly - essentially there are cron jobs that run (for example) very frequently and/or produce high ...
1
vote
0answers
537 views

Apache randomly fails to restart (port 80 in use) .. Probably cron related?

So this started happening for no apparent reason on a RHEL5 server running Plesk 10. I woke up one morning to find all the sites hosted on this box were offline. I SSH'd in and restarted httpd - ...
1
vote
0answers
198 views

Why are my PHP5-FPM pools disappearing mysteriously every couple of months? (Ubuntu 11.10, PHP 5.3.6)

I have a system where each user (about 20) gets their own instance of nginx and their own small pool of PHP5-FPM processes. A front-end nginx instance proxies requests to the appropriate nginx ...
1
vote
0answers
959 views

PostgreSQL: Could not connect to server even though it's running!

I wonder if you could possibly help me. I have installed PostgreSQL and I have tried running various checks to ensure it is running and I know it is. Here are the results of searching for the ...
1
vote
0answers
303 views

crontabs not firing on mac osx server under a non root account

I'd like to run a crontab but it is never fired. It's on a mac osx server 10.5.6 Accounts on mac are not defined in /etc/passwd. So their is no use in adding my account in /usr/lib/cron/cron.allow. I ...
1
vote
0answers
271 views

Crontab disappeared

An acquaintance complained about something not running on their system and asked for some help. I did a crontab -e and it mysteriously was blank! We were able to restore their crontab from a backup ...
1
vote
0answers
220 views

How to configure logrotate to just prune a directory once a week?

How to configure logrotate to just delete all files under selected directory once a week? I'm testing the following: /var/spool/mydir/* { daily rotate 0 nocompress copytruncate } ...
0
votes
0answers
14 views

How to restart PHP-FPM from cron?

I'm trying to restart PHP5-FPM periodically using Cron, but am having no luck. I can restart manually with no problems, using service php5-fpm restart or /usr/sbin/service php5-fpm restart However, ...
0
votes
0answers
45 views

Postfix/Dovecot Service

I have installed Postfix 2.10.2/Dovecot 2.2.5 on RHEL 5.9 from a source code, I forced Installation to be in my own directories not Defaults, I need to add Postfix/Dovecot under services or init.d to ...
0
votes
0answers
16 views

rdiff-backup failed due to target machine being down, but is unkillable

My backup script was invoked by cron, using rdiff-backup to backup the user files onto a target system in the network. That target computer went down at some point, yet still appeared as mounted on ...
0
votes
0answers
35 views

Cron: Get an email only after the nth error?

I have the following entry in my crontab to fetch emails from my freemail account: */5 * * * * getmail --rcfile gmx > /dev/null Every now and then, the server of the provider has some ...
0
votes
0answers
34 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
46 views

Cron Jobs unable to deliver email error report

I am sure I have right syntax and I am still unable to receive report emails to my email address. My OS is CentOS 6.4. My Crontab script is MAILTO="cron@mydomain.com" * * * * * /usr/bin/php5 ...
0
votes
0answers
33 views

Include executed cron command when outputting to log

Is there a way I can include the command in the output when I'm logging to a file? For example * * * * * date && /path/to/php /path/to/script.php >> cron.log 2>&1 Would give ...
0
votes
0answers
26 views

Incrond - event after all files have been copied

We are using incrond to monitor network storage and sending mail when something new is appearing. The problem is, that event registered as: /home/storage IN_CREATE python ...
0
votes
0answers
99 views

Cron sends e-mails but shouldn't

I'm getting crazy. Cron bombs me with e-mails, even if I set a nullstring as e-mail address and pipe the output to /dev/null. Currently my crontab looks like this MAILTO="" # m h dom mon dow ...
0
votes
0answers
116 views

How I can run .php cron jobs with SHELL='/usr/sbin/jk_chrootsh'?

I'm running the last version of ISPConfig and all work great while I add a cron job using http:// prefix. My problem is when I try execute directly some PHP scripts as a cron job, I mean, without make ...
0
votes
0answers
87 views

Why doesn't this cron behave the same way when run from CLI?

I have this cron for user root (obtained with crontab -l): 20 10,14 * * 1-5 /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog > /dev/null 2>&1 When it is run, it is supposed to ...
0
votes
0answers
103 views

Contab running multiple times every minute CentOS

I have two crontabs setup on my server. One that runs every minute and one that runs every 5 minutes. */5 * * * * ~/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path=/ ...
0
votes
0answers
60 views

webmin 'Scheduled Cron Jobs' menu tab not working

I am using webmin for centos server. I did setup my last cron job by using 'Scheduled Cron Jobs' for every minute. In next time when I was trying to set another cron job then 'Scheduled Cron Jobs' tab ...
0
votes
0answers
152 views

dd-wrt obfsproxy - Cant start on startup or via cron job

Router: WZR-HP-AG300H Firmware: DD-WRT v24SP2-MULTI (06/03/12) std - build 19154 To get obfsproxy installed on my router I went about Installing Opkg With opkg installed obfsproxy and busybox ...
0
votes
0answers
165 views

Automating rsync job with cron

I'm having troubles getting an rsync script to work on cron. I know this is a question that's been asked aplenty, but I've read all the answers I can find, and followed all of the instructions, but ...
0
votes
0answers
111 views

Userspace crontab

My administrator has disabled crontab in one of the server. Is there a userspace demon which could do exactly the cron would do? The at command still works. Should I write a wrapper to execute some ...
0
votes
0answers
99 views

Cron job running before schedule time in linux

I have created a cron job to run every 15 min for week day, but it starts running from morning 5:30 am I am confused why its running before schedule time. Also, I checked system time and it seems ...
0
votes
0answers
79 views

cron wont backup my database

I uploaded the cronjob but it wont backup my database. the error email is: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying ...
0
votes
0answers
461 views

Anacron jobs can't access /dev/console

On my Ubuntu 10.04 server, "anacron" is sending error emails daily: Subject: Anacron job 'cron.daily' on xyz.com /etc/cron.daily/logrotate: /etc/init.d/apache2: 235: cannot open /dev/console: ...
0
votes
0answers
86 views

Ubuntu - cronjob entry to print dpkg --getselections to a file every week?

I would like to run a job, which will execute the below command every week. $ dpkg --get-selections > /home/me/package_list.log So I tried the following. $ sudo crontab -e Added entry like ...
0
votes
0answers
82 views

Server unindexing?

I run a crontask every hour that reindexes my search engine. It occasionally doesn't work. Search sorts will not work correctly, until I manually reindex. My question is, is there anything in this ...