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)

0
votes
0answers
20 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
6 views

In crontab, @reboot is working but regular not working [migrated]

I am studying linux on my raspberry pi that installed debian version. There were no problem, worked perfectly in crontab, but something has occured in my crontab. @reboot sudo bash ...
3
votes
1answer
108 views

Cron Daemon Wget blocked

I've got Nginx on Debian 7 without cpanel. I am seting-up my Crontab like this: */45 * * * * wget "http://example.com/cron-url.php" >/dev/null 2>&1 The above cron is being blocked with ...
0
votes
0answers
15 views

Wal-E cron job not executing

I have a cron job setup that is suppose to be running the wal-e backup-push command. The command works fine if manually ran through the command line. As the postgres user of course. So I setup a cron ...
-1
votes
0answers
12 views

Cron files are not working [closed]

I updated the dedicated server's MySQl and PHP version. After made these changes, I found that existing CRON files are not working. Do I needs to restart server I am using ? Please help me how can I ...
0
votes
2answers
52 views

Add cron job to save a web link into txt file

I need to setup a cron job to save a webpage info into a text file in a specified folder at every hour. here is what I've tried: crontab -e in insert mode I typed: 0 * * * * wget http : // ...
-1
votes
1answer
29 views

Check how much time has elapsed for Cron job and send email

There is a cron job that is set which runs throughout most of the day, sometimes the job gets stuck and I would like to set a time or check on it which let's me know if it has been stuck for more than ...
0
votes
1answer
16 views

cron: What means mail error status “0x0002#012”

I have a cron job specified in the crontab: ... MAILTO=root ... ... 47 09 * * * tst nice -n 15 /opt/tst/bin/doMirror ... The doMirror script fails because of a syntax error. I had expected that the ...
2
votes
2answers
18 views

Is it possible to determine if a job is being started as an at job (kicked off via atd/cron)?

Is there a way to identify a script is being run as an at job instead of interactively from the shell by a user? Some of our scripts have a guard to check if they're running in screen by checking ...
-2
votes
1answer
39 views

Restart periodically two linux server with master slave dependency

My system is configured as follows: database server on a linux server web application on another linux server For sanitation purposes I would like to restart these servers during night at least ...
-1
votes
0answers
14 views

Crontab Syntax: Multiple ranges/Single Entry, Exclusions [CentOS] [duplicate]

I do development, and schedule tasks via cron for a certain client. I wish to exclude the 19th hour (7PM). I have researched it, and it seems that there is no exclusion syntax. Also there is no ...
0
votes
1answer
31 views

Ubuntu VPS not running cronjob [duplicate]

I used sudo crontab -e to add the following cronjob 0 0 * * * /usr/bin/php /var/www/path/to/artisan elite:reset-user-likes The command works correctly if a type it myself on the terminal. I also ...
-1
votes
1answer
22 views

Why does nvi think I have files being editing?

I've got a couple of FreeBSD servers that throw several copies of the following error on reboot: On Wed Oct 10 15:13:16 2012, the user root was editing a file named /tmp/crontab.s00huOAZD2 on the ...
2
votes
2answers
22 views

User crontab not accessible

I cannot edit my user crontab without being superuser. I expected the following to work, but I get an error message: $ crontab -e crontabs/gauthier/: fdopen: Permission denied The following is ...
1
vote
1answer
34 views

OpenShift cron does not run

I have the following file [subdomain.rhcloud.com minutely]\> pwd /var/lib/openshift/username/app-root/repo/.openshift/cron/minutely [subdomain.rhcloud.com minutely]\> ls -lha total 4.0K ...
1
vote
1answer
41 views

Is there a way to check the syntax of a crontab file without actually installing it?

I know that "crontab -e" performs a syntax check before attempting to install an edited crontab. However, I am looking for a way to verify that the syntax of a crontab file is correct, even if: the ...
0
votes
1answer
82 views

“apt-get -y upgrade” in cron task runs but does not upgrade the system

This server runs Debian 7 and I'm facing a big mystery. Here are my cron tasks: $ sudo crontab -e 42 15 * * * apt-get -y update >> /var/log/my-apt-update.txt 52 15 * * * apt-get -y upgrade ...
0
votes
1answer
42 views

Cron needs restart in order to process modified /etc/crontab

I know there are many questions about this which say it will work right away. Alas, at least on our newer SLES (Suse Linux Enterprise) 11 SP3 systems, that no longer seems to be the case. (You have ...
0
votes
0answers
26 views

Can anyone please explain how to fix the following errors on RSNAPSHOT?

Some errors occurs during the daily backup of VM's at 1am and is mailed daily with the following output. ***MAIL CONTENT*** ERRORS ERROR: Warning! Could not symlink("PAM.7.gz"), ...
5
votes
1answer
160 views

Cron daemon reporting “unknown user 'tomcat6'” every day since I removed tomcat

I'm running Ubuntu 12.04. Since I removed tomcat via aptitude purge the other day, I keep getting the following error from Cron daily: /etc/cron.daily/logrotate: error: tomcat6:7 unknown user ...
1
vote
2answers
67 views

cron job sending emails in a wrong charset

I have following command in a cronjob: */5 * * * * php /var/www/domain/yii rss/parse It outputs email in a wrong charset: Content-Type: text/plain; charset=ANSI_X3.4-1968 But when i launch that ...
0
votes
1answer
33 views

Unable to send external email via crontab

I'm trying to send email out from crontab. I've tried making crontab run a basic shell script, as well as specifying the actual command within the crontab. I've tried doing this with mpack and ssmtp . ...
0
votes
1answer
27 views

Send email on ldap creation

I have an LDAP server setup on a server running Debian 7 and I wanted to make it send out an email whenever a new user was created on that LDAP. I thought a cronjob would be best, but I have no idea ...
0
votes
1answer
82 views

Cron occasionally fails with “grandchild #X failed with exit status 3”

I have cron jobs and every now and then they fail. Just after log message that the command has started, there is grandchild #X failed with exit status 3 message. On the next run scripts finishes ...
0
votes
1answer
41 views

Openshift cron not working

I'm using OpenShift and I have a shell script that is executable and can be run from the command line, however cron doesn't seem to even attempt to run it. I have placed my shell script in ...
0
votes
3answers
562 views

root + crontab : permission denied [duplicate]

I'm using Debian 6, all patched up, but when I try to access crontab as root, I just get a permission denied: root@server:~# crontab -e -bash: /usr/bin/crontab: Permission denied Please note this ...
-3
votes
1answer
140 views

Cron jobs fail to run on raspberry pi (STAT FAILED shows in syslog) [closed]

I have a Raspberry Pi server in a remote location (it's a weather station). I have set up a few python scripts that I would like to run via cron. Sometimes, everything works fine. Other times, none ...
-1
votes
1answer
42 views

How can I flush and/or rotate cronevents?

Can anyone tell me how I can flush / clean / zeroize or better still rotate the contents of cronevents? I need to solve this, because I am attempting to 'productionize' my fileserver instance-pair ...
0
votes
1answer
35 views

CURL isn't running from Crontab

Here is the output. Not sure if cron isn't running or other issue. If I issue curl --silent http://..../scanner.php from terminal, I'm getting desired output. Actually scanner.php do some check and ...
3
votes
1answer
143 views

How can I find what's starting crond?

I need to stop crond at the command line. (I'm writing a script which needs to stop it, do some work, and then start it again. I'd rather not remove and replace the crontab file because it's more ...
0
votes
1answer
38 views

Automysqlbackup - dumped files have wrong permissions

This question has been askewd here. But it was not answered. I just got a 3rd server and on all 3 servers I use Automysqlbackup script to create MySQL backups. I do it with cronjob: 52 04 * * * ...
1
vote
2answers
42 views

Hourly Clamscan cron script failes at reading file list

I've this piece of code located in /etc/cron.hourly/hourlyclamscan. #!/usr/bin/bash # Create Hourly Cron Job With Clamscan # Directories to scan SCAN_DIR=/home/transmission/Downloads # Temporary ...
0
votes
1answer
224 views

Is there a way to restart automatically the HHVM service if I get a '502 Bad Gateway Error'?

I've reported the error on stackoverflow - from time to time my Nginx/PageSpeed+HHVM+MariaDB+WordPress blog stops working. There is some problem with the HHVM service that I don't locate, and I'm ...
-1
votes
2answers
118 views

Cronjob run every two weeks, on Saturday, starting on this saturday [duplicate]

Today is Friday, October 3, 2014 3:58 AM I want to schedule a cronjob like that to run it at the following dates: Saturday, October 4, 2014 8:00 AM Saturday, October 18, 2014 8:00 AM Saturday, ...
0
votes
2answers
102 views

crontab's invalid time checking is inconsistent

One of our DBAs created the following crontab entry to run a backup every 3 hours starting 6:30 AM to midnight every day: 30 6-24/3 * * * (path to backup script) Cron took the entry but did not run ...
0
votes
0answers
49 views

pppd call to restart VPN ineffectual from a CRON

This works when I run it directly but never from a cron it is the 'pppd call OM01' which seems to be ineffectual when run from a cron. #!/bin/bash # vpnTest.sh test if you ping via the VPN # if ping ...
0
votes
2answers
163 views

What mailer does cron use to send mail?

I am trying to debug an issue with cron not sending mail on a Centos 6 box that I did not configure. How can I determine which mailer cron is using to send mail? The crontab man page has this to say, ...
0
votes
1answer
68 views

Cron bash script skips second do/done set

I have a script that checks IPs for ping reply then tries to run an snmpwalk on them. I am trying to schedule the script to run weekly in cron. When I run the script in the shell, it runs perfectly. ...
0
votes
0answers
42 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 - ...
0
votes
1answer
45 views

Daily postgresql cron error log file

I am getting these emails daily: /etc/cron.daily/logrotate: error: error accessing /var/log/postgresql: No such file or directory error: postgresql-common:1 glob failed for /var/log/postgresql/.log ...
0
votes
1answer
124 views

Sending cron output as a text file attachment

I sysadmin a multiplayer game at CentOS 6.5 Linux server for a customer. The customer has requested me to send the daily chat logs (to identify and ban agressive players) - as a text file ...
0
votes
1answer
57 views

Cronjob for a bash script pauses for 2 minutes randomly

I have been running a bash script on CEntOS 5.5 machine that checks replication on a remote mysql server. The script creates a temporary lock file and is scheduled to run in Crontab every minute. But ...
-1
votes
1answer
16 views

some services switched off automatically

with my company we have a VPS. We have some issues with it. this morning the pure-ftpd was stopped. I had to start also postfix and the cron jobs were off for 3 hours. My config : Debian GNU/Linux 7 ...
2
votes
1answer
87 views

Should I use cron.hourly or crontab?

It seems that all the suggestions for using/scheduling awstats is via crontab, as such: 0 * * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -update >/dev/null (running awstats ...
0
votes
1answer
46 views

zip in cron doesn't work, but zip from command is working [duplicate]

I need to back up a directory with zip -r /savehere/backup_`date +%y%m%d%H%M%S` /save/this -q It works fine. But not from crontab: * * * * zip -r /savehere/backup_`date +%y%m%d%H%M%S` /save/this ...
0
votes
2answers
111 views

crontab fails, cannot find aws executable

I am trying to run a backup script on my ec2 amazon server (ubuntu 14.04), to automatically create a snapshot of amazon ebs volumes. Therefore I am using the aws-missing-tools script: ...
0
votes
1answer
41 views

simple crontab every 5min not working [duplicate]

I am trying to setup a crontab to execute a command from a specific user. Here is my code in "crontab -e". Why is this not working ? */5 * * * * user /home/user/whoami>swag.txt I am running ...
-5
votes
3answers
55 views

Crontab is not working [closed]

I am trying to add a new script to crontab using putty. I am following these steps: open putty enter my username / password enter command crontab -e to create new crontab copying this command to ...
2
votes
1answer
201 views

Have a Vagrant VM destroy itself or power off on completion of a long-running task

I've been using Vagrant with Ansible to perform certain ETL tasks. This has provided some flexibility and transparency: jobs can be easily be moved around and the YAML playbook provides some level of ...
0
votes
2answers
811 views

APT FATAL -> Failed to fork

I saw a lot of questions regarding this, but mine seems a little different. Here's what I receive: /etc/cron.weekly/apt-xapian-index: FATAL -> Failed to fork. run-parts: ...