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)

3
votes
0answers
87 views

`at` jobs running tens of minutes later than expected

I have an issue with at jobs being queued successfully and running successfully, but sometimes tens of minutes after they are scheduled to run. I confirmed that atd is running: me@hostname:~$ ps -ef ...
3
votes
0answers
160 views

How to apply memory limits to all cron jobs?

On a shared server (Debian Jessie), there are some memory limits (and other limits, like number of processes) that apply for a group of users, configured in /etc/security/limits.conf. It seems that ...
2
votes
0answers
148 views

How to use “keep_environment” option in exim 4 on Debian

I am running exim 4.84_2 on Debian, now since a few weeks I get the following mails from anacron: /etc/cron.daily/exim4-base: LOG: MAIN Warning: purging the environment. Suggested action: use ...
2
votes
0answers
37 views

How to aggregate a large cron mail volume

How do you handle a large volume of cron mails (from a thousand servers) in a smart way? Main use case: a cron error comes in, but its severity does not warrant immediate action. However, I do not ...
1
vote
0answers
38 views

Cron not logrotating for cron.daily

I'm running a rhel7 server and I have a rsyslog logrotate config file that doesn't seem to run using cron job. It will only work if i run it manually Troubleshooting steps i took: logrotate -df /etc/...
1
vote
0answers
21 views

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few ...
1
vote
0answers
109 views

Running crontab on AWS auto scaling group

I have the following setup: 1 server with application X, that runs a crontab once an hour. The crontab connects to the database and runs some heavy calculations and exports data to a special data file ...
1
vote
0answers
384 views

cron vs anacron on server machine (AWS instance)

During review of environment which I took over I've discovered that Amazon Linux uses anacron by default which means that cron.weekly jobs are executed somewhere between 3a.m. and 10p.m. Moreover - I'...
1
vote
0answers
523 views

cron.weekly runs on wrong day of week on Ubuntu

I have this line in my /etc/crontab: 47 6 * * Sat root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) So the cron.weekly should be started every Saturday ...
1
vote
0answers
180 views

Incrontab does not execute command

I have copied this question over here from unix.StackOverflow When I use incrontab out of the box, I mean no changes, I get no result, as if the cmd was not executed. my incron line is : /crrae ...
1
vote
0answers
55 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
37 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
783 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
54 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
181 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
100 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
79 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 /home/administrator/...
1
vote
0answers
629 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
311 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
2k 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
411 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
302 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
317 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
13 views

Time to run znapzend job

I have setup znapzend and have created the following job: /opt/znapzend/bin/znapzendzetup create --recursive --mbuffer=/usr/bin/mbuffer --mbuffersize=1G \ > --tsformat='znapzend-%Y-%m-%d-%H%M%S' \ > ...
0
votes
0answers
30 views

Elastic Beanstalk and Worker Tier? (PHP)

I'm trying to setup my app that's hosted on EB with a worker that will run some basic cron jobs to feed an RDS database with data that the app consumes. I deployed this cron.yamlat first: version: 1 ...
0
votes
0answers
27 views

Error in crontab file: bad day-of-week

When I run crontab -e on my Debian server and add these lines: # System statistics */10 * * * * /usr/lib/sysstat/sa1 1 1 > /dev/null 2>&1 59 23 * * * /usr/lib/sysstat/sa2 -A > /dev/null ...
0
votes
0answers
19 views

Find Unknown Predicate JailedShell

Well, after months experimenting with ', ", and \" it seems i cant find the right pattern that could generate the correct code for a cron job on a jailed shell. I got this code below works on jailed ...
0
votes
0answers
14 views

Wyse Enhanced Ubuntu Terminal Locked Down?

I'm dealing with about 20 Wyse T50 thin-clients and I want to set up cron, however, it seems like there are a number of things locked down in the Wyse Enhanced Ubuntu terminal. For instance, '...
0
votes
0answers
25 views

Cron jobs running 9hours 15min late

I have a Cron Job set to run Nightly at 22:01 followed buy three others at 23:59 02:10 and 02:15 The Cron log shows that they are kicked off at the correct time.. :cron.log file snippet: Apr 12 22:...
0
votes
0answers
29 views

Scheduled Cron Jobs auto Deleted after few days

i am using CentOS Linux 7.1 with control panel webmin virtualmin and now after upgrade webmin i am facing a problem with my crontab and the problem is which cronjob i have made by me these all are ...
0
votes
0answers
27 views

Yum-cron output to both email and log

When configuring yum-cron on a CentOS (07 x64) host, i noticed the following option (/etc/yum/yum-cron.conf) - # How to send messages. Valid options are stdio and email. If # emit_via includes ...
0
votes
0answers
177 views

Cannot allocate memory problems - update-notifier-common

I'm running a Ubuntu 14.04.3 server on a Digitalocean droplet with 1GB RAM. I'm getting weird memory allocation errors, even though I have plenty of memory available. I started noticing this from the ...
0
votes
0answers
36 views

nginx stop logging after crontab modified the log file

I have a web server(django) running on nginx + gunicorn. nginx writes its regular logs to: ~/myproject/log/access.log and it writes errors to: ~/myproject/log/error.log it works pretty well for ...
0
votes
0answers
34 views

Crontab by hostname

My system is having 3 nodes and the cron scheduling is defined in one of these 3 nodes. So while checking with crontab -l at times I am getting proper cron listings at times I am not as the node ...
0
votes
0answers
46 views

Script in user terminal works, permission failure in users crontab in Scientific Linux 7.1

I have a script that works to check if my VPN connection is up, and if not, it restarts it. This works correctly in a terminal, but the command nmcli con up uuid 7c514892-6a6a-4d33-946b-84aeb37615bb ...
0
votes
0answers
24 views

If cron as www-data/apache user have security issue?

Last year I checkout a server where I found some exploit bash script in /tmp folder which download a binary file from 3rd party server. When I further checked it, I found apache user's cron entry for ...
0
votes
0answers
35 views

Run Crontab command in jailed enviroment

I had created a user account in my server. And I created a jailed enviroments for that user. One thing i need is how to run crontab command in jailed enviroments. I tried add bash crontab to xxx/us/...
0
votes
0answers
27 views

unable to force my cron job expression inside Hangefire tool to run on a specific hours

I am working on an asp.net MVC-5 web application. and i am using HangeFire tool to run background jobs. now i want my background job to run at 17 & 18 & 19 & 21 & 22 & 1. so i am ...
0
votes
0answers
17 views

How to launch cron job after editing crontab

I'm debugging a crontab and I would like to know if it's possible to launch a crontab right after editing. I need to know that the job will work within the cron environment. Now I'm trying to make ...
0
votes
0answers
575 views

php_network_getaddresses: getaddrinfo failed: Name or service not known openshift host

I'm using openshift host for develop a custom php application, all working good in local but I've a problem to establish a connection with my database of openshift. This is the configuration file for ...
0
votes
0answers
19 views

Managing lab machines via cron and dsh

I'm a developer for a research lab. Our lab has 12 Ubuntu machines for test subjects that we control from a workstation using a variety of things (dsh for opening our experiments in chrome, wakeonlan ...
0
votes
0answers
23 views

Anacron - multiple sets of variables

Our environment has an existing set of anacron jobs with the following variables: RANDOM_DELAY=45 START_HOURS_RANGE=3-22 I want to add a new job, preferably in /etc/cron.daily, with a different ...
0
votes
0answers
66 views

Debian 8.0 - Cron job not working or not called.

I have the following entry I put in after running crontab -e */10 * * * * /var/www/myApp/script/every_10m.sh The script every_10m.sh exists and is executable. Just for testing purposes it has one ...
0
votes
0answers
64 views

cron job doesn't run under specific account

I have a crontab entry on my RHEL 5.4 system under the "oracle" account but it never seems to actually run. I have the following entry: * * * * * /home/oracle/blahblah.sh > /tmp/test.log 2>&...
0
votes
0answers
167 views

Cron not running at specified time

I have a new Centos 7 system and having a trouble with cron jobs not runnning at the specified time: [root@media cron.d]# cat /etc/cron.d/rsnapshot 30 02 * * * root /bin/rsnapshot daily 00 02 * ...
0
votes
0answers
442 views

php curl does not execute url

Im writing a php cron script that needs to run a url After some database modifications the php script needs to execute an url $url = 'http://server.domain.com/cronjob.php?idorder='.$orderid.'&...
0
votes
0answers
75 views

why is cron flooding wtmp and last?

When I type the last command, I see a bunch of entries in there for cron. Every single cron job that gets run creates an entry and it's flooding wtmp with unnecessary entries. Any ideas how I can stop ...
0
votes
0answers
91 views

Using placeholders or environment variables in sudoers

Is it possible to use in sudoers rules any kind of placeholders (not just wildcards) or environment variables? What I would like to do is to verify that user (the one sudoing a command) passes as an ...
0
votes
0answers
34 views

cron job time managment

I have cron job A and B (both jobs run every minute) from 9.00AM to 6.00PM I like to make the second one run after the first one in 30 second.both cron job should be run by root user. for example if ...
0
votes
0answers
59 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 ...