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
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
2answers
880 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 ...
2
votes
2answers
419 views

How to schedule job to run on Linux/Unix only when system is idle?

How do I schedule a job to run only if the system is idle? E.g. I want to run some cleanup task every week, but only if it does not interfere with other users. I know I can schedule a task to run ...
1
vote
2answers
382 views

Cron getting timeout when attempting to access url (wget).

I'm sure this is simple and I've been digging but no answer is quite as specific as I need it to be. The goal is easy, have Cron hit a url on my server every 5 minutes. All of that is set up and ...
1
vote
2answers
116 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 ...
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
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 ...
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
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
58 views

Spam emails from Suse server: test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp

Have a virtual server with old Suse. About a month ago cron started spamming me with emails like this: Subject: test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp ...
0
votes
1answer
24 views

Starting a detached screen has no effect

I want to start a shell script in detached mode on ubuntu bootup (via cronjob @reboot) but it doesn't even work when I try it directly. Syntax: screen -d -m -S myscreenname /path/to/my/script.sh ...
0
votes
1answer
114 views

How to make sure script is always running?

I have 4 scripts in crontab that start on server boot. After 12 hours or so, some throw an exception and stop running. At that point, I want my server to just start the script again, so each script is ...
0
votes
1answer
144 views

ssmtp won't send cron email

I can't figure out why cron on my AWS EC2 (Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)) can't seem to send email out via sSmtp to AWS SES. This works: echo "test" | ssmtp my@myemail.com ...
0
votes
1answer
57 views

Binding timestamp value to a variable in crontab

I'm basically trying to declare a variable with a date() value in crontab as I will constantly be using the same date structure over and over, here is what my crontab looks like so far. php = ...
0
votes
1answer
101 views

logwatch on Centos 6.4

My logwatch is configured correctly and is working correctly when I issue manually /usr/sbin/logwatch I added it to root's crontab and it is listed correctly when I make crontab -l which gives: 0 ...
0
votes
1answer
311 views

Why is cron running twice?

I wanted to execute my PHP mailing-script automatically with cron. I always get the mail twice though. The script runs fine when started manually. I put this in the crontab for testing: 54 13 * * * ...
0
votes
1answer
593 views

Compress and remove logs from jboss on linux with cron

I need to compress and remove log files after some time from serwer. I have never write scripts before. So far i have script logs.sh: #!/bin/bash LOGS=/usr/local/jboss/server/default/log/ ...
0
votes
1answer
521 views

Cron won't use msmtp to send emails in case of failed cronjob

I'm trying to configure a machine so that it will send me an email if one of the cronjobs output something in case of an error. I'm using Debian Wheezy. Cron is working normally (without the email ...
0
votes
1answer
175 views

Unable to get cron to append output from wget

I have a cronjob setup and running, but the logfile keeps getting overwritten every time it runs. I would like for the wget output to be appended each time the cron runs. Why is this and how do I fix ...
0
votes
1answer
94 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 ...
0
votes
1answer
198 views

cron job not running the script that start vncserver

Hi I wrote a script to start my vncserver when I call it manually via command line. It works as follows: the script is in usr/bin I gave it the right authorization (chmod u+x startvnc) but wen I ...
0
votes
1answer
308 views

How to stop long-running cron process from being killed

I have a long-running cron process, running a Python script, that seems to get randomly killed. In dmesg I see: [230568.077358] init: cron main process (890) killed by TERM signal [237517.974422] ...
0
votes
1answer
165 views

Logrotate rotating daily but should be rotating weekly

For some reason logrotate is rotating logs daily instead of weekly, even though all the config files for logrotate seem to be set to weekly. Any ideas? /etc/cron.daily/logrotate #!/bin/sh test -x ...
0
votes
1answer
85 views

Changing IP of the machine at regular intervals

I have a pool of public IP addresses. There are some services in my box which binds to these. What i'm trying to achieve is to automate the IP change process. Best way to do this is to write a script ...
0
votes
1answer
178 views

Running cronjobs with proxy

I have a requirement where I have to run several cron jobs with specific IP in an EC2 instance. That specific IP is used by another EC2 instance. I have access to that EC2 instance. Is there any ...
0
votes
1answer
60 views

Centos: List all cron jobs in a week ordered by date

I'm trying to get all cron jobs in the current week (or from monday to sunday) ordered by schedule time. I'm trying with some elaboration on the output of the command crontab -l I appreciate ...
0
votes
1answer
310 views

SFTP download the files and then i wanted rename the server files how to do this?

I have to setup with the banking interface where I need to connect to the remote bank and then download the files in the bank server in-box to my local server for further processing so i do following ...
0
votes
1answer
679 views

let CRON send emails through SMTP ( debian squeeze )

i would like to send emails whenever a cronjob has completed, i read that this is possible with exim4. in /etc/alias i added the line myuser: mygmail@gmail.com in /etc/exim4/update-exim4.conf.conf ...
0
votes
1answer
363 views

Linux CentOs 2.6.18 Setting locale for cronjobs

I have the problem, that I am trying to automate some Informix database job via the crontab. The job runs fine when done via the command line or processed via the at queue, but not via the crontab. ...
0
votes
1answer
296 views

Cron task failing on specific job

On my server I am getting the following error when running one of my cron tasks: CRON[9913]: (CRON) error (grandchild #9915 failed with exit status 127) The server is running ...
0
votes
1answer
123 views

Virtual server (VM) running Ubuntu re-configures itself?

I'm helping to administer a VM running Ubuntu with Media Temple. The hostname was changed, and sendmail was removed and replaced with exim4. To change the hostname 'sudo hostname newhostname' was ...
0
votes
1answer
236 views

solaris + run script every night one time from the crontab

I build in my Solaris machine new script Script name: send_brd_msg.sh ( this script located under /var directory I want to activate this script every 12:00 at night by the crontab Please advice ...
0
votes
1answer
621 views

Cron, chroot, jails, and permissions

I'm trying to grasp how to run crons under chrooted users. I'm on Ubuntu, and using ISPConfig where I can. I created a cronjob in ISPConfig which resulted in a file /etc/cron.d/ispc_chrooted_web1 ...
0
votes
1answer
216 views

Can we list all possible reason for a cron job crashed or killed?

We have some cron jobs which cannot be dead otherise the consequence would be davastating. So we need to have an eye on the process and know exactly what cause the death of a job. So I would like to ...
0
votes
1answer
254 views

Any chance a crontab entry is deleted automatically after the entry is commented?

Maybe I'm mistaken, but it seems that every-time I commented out a crontab entry, it will deleted automatically. eg. ssh server crontab -e commented out an entry using "#", save and quit Next day ...
0
votes
1answer
276 views

Setting Up Plesk Cron Job — Not Sure How To Call File

I have a Plesk-managed web server that I host my website on, and I have set up a cron job to run every night, but it's not working due to a problem with the path. I am using CodeIgniter and ...
0
votes
1answer
134 views

Simple cronjob issue (I think!)

I am a Unix/Linux n00b. I have a VPS running CentOS with WHM/cPanel. I comissioned the installation of ASSP Deluxe, which is a third-party anti-spam solution. Everything works great. One of the ...
0
votes
1answer
288 views

Curl doesn't work in crontab

I'm new to set up server settings and to the whole unix thing so maybe this is simple. I'm trying to start crontab with curl in but it doesn't work. I want it go to file and send email every 30 ...
0
votes
1answer
137 views

Services Similar to Cronless?

Are there any other well known cron alternative services to manage large amounts of automated tasks, such as curl'ng a url at a certain frequency? The only one I have found is cronless.com
0
votes
1answer
149 views

Using a link to a crontab file located elsewhere than /etc/crontab (Debian)

I have an EC2 instance in AWS. As you know, if my instance crashes I lose all data located in the local EC2 hard drive. Of course I have an EBS for my data, but /etc is located in the ...
0
votes
1answer
289 views

Run crontab to click a website link every hour

I would like to click on a test like this (the "start testing" button) every hour so I can get a hourly result (results are saved on the server side). Basically what happens is that I connect with a ...
0
votes
1answer
94 views

how large size support `crontab.txt` on linux serve?

I have a long long list of task list in crontab.txt, my crontab.txt over 5MB, will it cause fault in linux serve? (has lunux dad a limit size requiry?) And is it good to write a task list like ...
0
votes
1answer
81 views

How to dump a stream for a defined amount of time on a schedule basis

I have a video stream from a video4linux device /dev/dsp/adapter0/dvr0 I want to programmatically dump this stream for a predefined amount of time. I think to schedule the jobs I might use cron and ...
0
votes
1answer
352 views

using outside smtp to deliver cron generated emails

I want to deliver cron generated emails to my id, abc@example.com instead of being saved on /var/spool/clientqueue I've done the following: echo "set smtp=smtp.example.com" > /root/.mailrc echo "set ...
0
votes
1answer
55 views

crontab on fedora core 6

I want to run php file every hour using cronjab 0 * * * * root /usr/bin/lynx -dump http://mydomain.com/weeklyreport.php I put this line in etc/crontab. I do not get any mail. Weeklyreport is to ...
-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 ...
-1
votes
1answer
340 views

sending email from cron in html format not text

i am trying to send email every 1 hour from cron job which is executing a php script that fetches data from database and shows in a table format. i have CentOs 6.1 where i created my cron job.firstly ...
-1
votes
1answer
131 views

Allow nginx www to run Centos at command

I have a job which created by PHP script running as www (nginx) 31 2014-06-09 19:08 a www After the time passed, the job is executed but nothing happens. But if i run it as a root, 32 ...
-1
votes
1answer
322 views

VPS debian 64 bits put cron to reboot at 7:00 every day

I have a VPS with debian 64bit. And I would like to set a daily reboot at 7:00 with $ ps aux root 1844 0.0 0.1 18832 964 ? Ss 07:23 0:00 /usr/sbin/cron so the cron it's ...
-2
votes
1answer
97 views

Possible to run commands in a screen through cron jobs?

I currently have an application running in a screen. I would like to run some commands in the screen through a cron job but would like to know if this is possible. Using CentOS