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)

-1
votes
0answers
5 views

Pi and cron.d modified from windows app [on hold]

I want to update a file in /etc/cron.d/file from a Windows application. I can add and delete lines in the file no problem. Cron does however not run the file until I have opened, modified and saved it ...
0
votes
0answers
16 views

Why does python 3 script not execute via crontab? [duplicate]

There's one little problem with my crontab and python 3 script. Currently I'm on VDS with Ubuntu 14.04 installed. There're 2 scripts that need to be executed via crontab in desired time. The first ...
0
votes
0answers
15 views

How to setup cron on Ubuntu 14.04 with php5-fpm [duplicate]

I have php5-fpm installed on Ubuntu 14.04 and I would like to create a cronjob to execute a script every 5 minutes.. Using crontab -e I created the following: */5 * * * * /usr/sbin/php5-fpm ...
0
votes
3answers
39 views

List all running cron jobs

Is there a way to see a list of running cron jobs on my server? I would like to see the name of the file being loaded or command. Plus how long it as been running. I am on CentOS.
0
votes
0answers
27 views

crontab not executing even when cron daemon is running [duplicate]

30 1 * * * sh /export/home/omega/report_scripts_cm/parse_subscriber_cdr.sh >> /dev/null 2>&1 30 2 * * * sh /export/home/omega/report_scripts_cm/active_subscribers.sh >> /dev/null 2>&1 30 3 1 ...
-1
votes
0answers
16 views

Tiny Tiny RSS - Cron jobs [closed]

I recently created a free openshift hosting and I'm trying to install Tiny TIny RSS reader on it. I'm following the instructions here ...
0
votes
0answers
10 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 ...
1
vote
1answer
28 views

expect script running screen stops working when run by cron

I hope this question is OK for this forum. I have a device, a modem. I talk to this modem with the linux program "screen" as a terminal program. I invoke it like this "/usr/bin/screen /dev/tty6". I ...
0
votes
0answers
5 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
1answer
27 views

cron and lftp issue

I have the following scripts running on raspbian. start #!/bin/bash /root/config/commands 2>&1 > /root/log/$HOSTNAME.log commands #!/bin/bash source /root/config/variables echo TestLine ...
0
votes
1answer
22 views

run cron job only if load not too high

I need to synchronize two systems, so the producers list new entities to be created on the consumer app. It has no realtime need (mostly for datamining, so being a few hours behind isn't an issue), ...
-1
votes
0answers
31 views

Crontab not firing [duplicate]

The Problem: lately MySql service seems to shutdown after cpanel updates and i have to manually restart the service but until then my website shutsdown. I am debugging what causes MySql service to ...
0
votes
3answers
54 views

Multiple servers Rsync into one NAS simultaneaus

Scenario: 1 NAS at our main office (Synology Cubestation CS407) 20 remote servers in various physical retail stores (1 server per store) Network between HQ and stores are in an MPLS/VPN. I have ...
1
vote
1answer
26 views

Solaris “crontab -e” locking via vi

I ran into an issue yesterday with locking on Solaris and crontab editing that has me wondering what the best way to protect multiple concurrent edits of the same crontab are on Solaris. I've ...
0
votes
1answer
34 views

Crontab command not executed

Coming from Why is my crontab not working, and how can I troubleshoot it? i still don`t know why my command is not executed. I got same command for root and www-data and my cron logs shows that ...
1
vote
1answer
48 views

Kerberos master server to slave server automation?

I've set up Kerberos in my workplace running on Centos 6 boxes, and successfully propagated the master server database to the slave and also set up a cron job to update it automatically every 5 ...
0
votes
1answer
27 views

how to use screen with crontab?

I have a screen task running with node (nodemon) I would like to restart nodemon at midinght every day What I do manually is under SSH screen -r myscreen I TYPE "rs" manually I type CTRL+A+D to ...
0
votes
1answer
32 views

How to rotate a log file from crontab?

I have this directive on my crontab: * * * * * /var/www/github/mysite/bin/email email worker await --pid=/var/run/mysite-worker-email.pid >> /tmp/mysite-worker-email.log As you can see all my ...
0
votes
0answers
6 views

Floating time cron job [migrated]

I have a Linux host which I would like to have a cron job run on. I do not shut down this machine. I always suspend it. I want to run a job once a day and I cannot set it for a particular time since ...
0
votes
0answers
110 views

Cron Job Crashes the Server?

Can a CURL Cron Job fired every minute crash a server, or it's a problem with the code? I had a shared hosting that worked great, then I added a cron job with enters, using CURL, to a specific URL ...
-1
votes
1answer
29 views

Crontab Certain Days of Week Colliding

I've setup a backup rotation on a centos 6 crontab, one script should run Mon-Sat, the other on a Sunday, never on the 1st of the month. However the weekly (Sunday only) script has been running every ...
0
votes
0answers
15 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 ...
1
vote
2answers
28 views

How can I send ALL cron output to syslog rather than email

I am running cron with -m off to stop it sending email and then the -s option is supposed to send all output to syslog. Cron cmdline is crond -s -m off My cron job for testing this is * * * * ...
0
votes
1answer
22 views

Magento's cron.php: Persistent or not? Why putting it into cron?

I have a question regarding Magento. Apparently, to perform scheduled tasks within Magento, it needs to run a script called cron.php. Originally the script was triggered by an on-server crontab using ...
-1
votes
4answers
78 views

Check if remote mysql is running

I want a bash shell script that i can run using a cron job to check if mysql on a remote server is running. If it is, then do nothing, other start the server. The cronjob will be checking the remote ...
0
votes
1answer
20 views

Crontabs and SSMTP?

I'm trying to send an email through cron and ssmtp. I created a script with this #!/bin/bash printf "Subject:test\n\Test text" | ssmtp email@adress.com The script works fine when run from the ...
0
votes
0answers
10 views

Setup efficent cron for running a script [duplicate]

I have to run a script which runs every 10 min between these hours everyday 6:50-7:30, 10:50-11:30, 13:50-14:30, 16:50-17:30, 19:50-20:30 What will be efficent crontab with minimum no of lines.
0
votes
0answers
69 views

before to excute a cron job, how to make a delay if there is other cron job running

i have a web application allow the user to add cron jobs to the server, and the user can select the time he wants, and allow them to add more than one cron with a different parameters, when the cron ...
1
vote
2answers
38 views

Why is the cron ENV different from the user's ENV?

On a new Ubuntu install, a user's PATH is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games But in that same user's cron environment, it is: /usr/bin:/bin ...
0
votes
2answers
88 views

Running a bash script via cronjob to restart a service

First of all. I don't know anything about bash scripting. second this is a very big problem on my side, and I don't have any idea what to do. Currently, I have this website. which was written in php. ...
-1
votes
1answer
22 views

Crontab / jobs failing (due to + sign?) [duplicate]

I'm trying to automate a nightly backup with the following cron jobs (IPs and password redacted. of course): [root@katexic ktxc]# crontab -l 30 3 * * * /bin/tar -czf /backup/ktxc/ktxc-`date ...
0
votes
1answer
36 views

cron not running specific command [duplicate]

I have a simple script and asking crontab to execute that script. In the script, I have 2 commands I want to run and append the output to a file. Only one of the commands does as it should. However, ...
0
votes
1answer
34 views

How to filter cron messages in syslog-ng

I have a litte problem. I dont know ho to filter cron jobs in syslog-ng. It's spamming my log. Jun 05 16:09:01 CRON: pam_unix(cron:session): session opened for user root by (uid=0) Jun 05 ...
0
votes
0answers
93 views

Rundeck - Remote command failed with exit status 1 on php remote command

I use Rundeck to launch symfony php command. I have this result at the end of the command : Remote command failed with exit status 1 Any idea ? my debug job log : [workflow] Begin execution: ...
0
votes
2answers
65 views

CentOS root user crontab for mysqldump

I am using CentOS 6.6. I am trying to set up a crontab. I made an .sh script which runs perfectly when executed manually. The command is following: mysqldump --skip-lock-tables --single-transaction ...
0
votes
1answer
99 views

run PHP file from shell script

I have never added a cron job and am not much use with shell either... My chosen cron directory is /etc/cron.daily/ all I need my script to do is run a php file daily. I would be nice if it ran at ...
0
votes
1answer
64 views

Server crashing daily at 3:40am

I have a cloud server with rackspace. It is CentOS release 5.10 (Final). 40GB storage, 1gb ram, 2gb swap. I am running the kloxo control panel to manage the virtual hosts. Every day it eats up all ...
0
votes
1answer
26 views

Command will run in shell but throws unexpected EOF error in cron [duplicate]

I am trying to run the following in cron to back up a server every morning at 4am: 0 4 * * * dump -0uan -f - / | gzip -2 | ssh -c blowfish user@server dd of=/backups/`hostname`_`date ...
-2
votes
1answer
50 views

VPS Cron and other email going to spam folder [duplicate]

I have a new vps and I need to setup some cron jobs on it to notify me of what's happening on the server. I've tested with sendmail and emails are indeed leaving the server, but on my email they are ...
0
votes
1answer
27 views

How to detect if a longer chain of commands in cron fails?

I want to create a crontab wrapper in python that logs if a crontab entry fails. It should be useable like this: 0 * * * * cronwrapper -c "some_command | some_other_command & third_command ...
0
votes
1answer
43 views

centos 6 64bit crond not running on startup?

I have two VPS from ramnode, centos 6 64bit. I have reinstalled server 2 several times and also tried 32 bit centos 6. Same problem. Whenever I type reboot and then service crond status it says ...
2
votes
2answers
56 views

how to stop cron mail receiving in spam folder?

I have added a cron job for my incremental backup, and I configured it like this.But my mail goes to spam folder.so iclick not spam option in mail.it moves to inbox.but again it receives in spam 0 23 ...
0
votes
0answers
39 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 ...
0
votes
1answer
36 views

Run cron jobs in different TZs

I have several cron events that need to run but on different timezones. For example, I have one event that runs every day at 08:30 UTC, and another event that runs every day at 09:30 CET. I've read ...
1
vote
3answers
196 views

How to send an e-mail after a cron job [duplicate]

I have added a cron job for my incremental backup, and I configured it like this: 0 23 * * * /usr/bin/rsync -ravzX /mnt/external/project/ /media/backup/project/ | mail -s "Backup Success" ...
0
votes
1answer
53 views

Issues with Webalizer cron job throwing error due to file cannot open - how to Fix?

So I have a newly installed server running Ubuntu 14.04 with the default install of Sentora the free open source control panel. I did not make any customization to webalizer or cron. So I am unsure ...
1
vote
1answer
499 views

Add cronjob with bash script - No crontab for root [duplicate]

I have a deployment script and in it I'm trying to add a cron job. This is the code I am using which I found on stackoverflow. I'm running debian 8. # ADD CRON crontab -l > mycron echo "10 * * * * ...
0
votes
1answer
67 views

Disable cron jobs or cron daemon on Ubuntu 10.04 server in rescue mode

I am trying to recover an Ubuntu 10.04 server in rescue mode and I want to stop cron jobs and/or cron daemon running on reboot. So far I have: Edited the cron files in /var/spool/cron/ renamed ...
0
votes
2answers
24 views

Crontab, keep output log, but disable email sending

For now I have crons like : 45 * * * * www-data php /var/www/console cmd:dispatch --env=prod 2>&1 > /var/log/cron/cmd_dispatch.log And I'd like to disable email sending. In order to ...
0
votes
4answers
51 views

Is it possible for a cronjob to start before MySQL starts?

I am on CentOS 7, and if I put: * * * * * python script.py It works. If I put: @reboot python script.py Then it says it cannot connect to MySQL. If I run it from command line too, it works. ...