cron is a task scheduler based on clock time that runs on Linux-based machines.

learn more… | top users | synonyms

0
votes
1answer
13 views

Centos freezes, when trying to open crontab

I'm trying to open crontab, but when i type it the whole os just freezes... I thought, maybe that's because vim isn't installed, but it is. I also checked the cron.allow and cron.deny files, but they ...
0
votes
0answers
11 views

Ensuring Cron Jobs are called from within the Server

Here is the information about my development environment: Windows Server 2012 R2 Standard 64-bit Operating System, x64-based processor Microsoft Visual Studio Professional 2013 .NET Framework 4.0 ...
-1
votes
1answer
36 views

How can I constantly check that a python script is running 24/7 and is not down?

I have a python script which has to run 24/7 on a Linux server. What's a wise way to ensure it's up? They suggested me to use cron and the 2nd another script which checks the 1st one somehow.
1
vote
0answers
11 views

Why doesn't cronjob execute feh command

I build a cronjob to download a new picture from a source every ten minutes and set it as wallpaper using feh. The file is downloaded but the wallpaper doesn't change. Where is the problem? crontab -e ...
0
votes
1answer
23 views

Backup MySQL, using Screen and Crontab

I'm trying to backup my database's table every day, using mysqldump, screen and crontab. If I run only mysqldump, it dumps correctly, but if I do it trough screen, the output file is blank. Editing ...
1
vote
1answer
14 views

Where is my crontab file on OS X?

Moving to a new laptop I've lost my old cron setup. I'd like to include it in my backup going forward. Where is it located?
0
votes
0answers
17 views

Loading kerberos keytab from root cron

When I run a script (see below) to load a kerberos keytab from a users cron it works just fine. Running it from root cron however a password is asked for the keytab and it aborts with: kinit: Generic ...
1
vote
1answer
19 views

why don't cron jobs in /etc/cron.d directory appear in crontab -e?

I do sudo crontab -e and see a bunch of cronjobs. If a cron exists in /etc/cron.d but not in sudo crontab -e does that mean it's not being ran? Or is it being ran but just isn't showing up for ...
0
votes
0answers
20 views

How can logrotate execution result in “service: not found”?

I am trying to understand the output of my logrotate script execution: error: error running shared postrotate script for '/var/log/nginx/*.log ' logrotate_script: 2: logrotate_script: service: not ...
0
votes
1answer
17 views

understanding excessive DNS traffic to cron.sh

I noticed that my domain cron.sh is receiving more than a million DNS requests a month, exceeding its dyn.com quota. Set up djbdns for it and observe that thousands of hosts around the world want its ...
0
votes
1answer
17 views

echo does not apply a line to crontab

Want to apply this to crontab: crontab -l > nopass echo 'ALERT - Found a user without password on:' `hostname` `date` | cat /etc/shadow | awk -F: '($2==""){print $1}' | mail -s "Alert: Found a ...
1
vote
1answer
40 views

How to mail output of shell script as a cron job

I've created a cron job that runs a shell script. I'd like the shell script to run and capture it's output and have it emailed upon completion. Here's what I have so far, but the mail message body ...
0
votes
1answer
42 views

Start Google Chrome from cron task

I'm trying to start google-chrome from cron task. Actually, I've a cron task checking every minute my chrome processes. If there is not any process. I want to start it. Here is my cron task: * * * * ...
0
votes
1answer
38 views

Add entry to newly created crontab using shell scripting

I would like to add an entry like */15 * * * * php -f /var/www/cron.php to a newly created crontab using shell scripting in Ubuntu 14.04. The purpose of this is to automatically provision a ...
2
votes
0answers
38 views

Setting up a watchfolder

I want to make a folder that I can put any video file into and have ffmpeg catch it and spit it out as an mp4 and remove the non-mp4 file. I have the following: for f in *.*; do ffmpeg -i input ...
0
votes
2answers
38 views

Cron job string settings to fire 4 times a day in between 5-10

* 5-10 * * * will fire the script between the said timings but how will I control the count? BTW the count and the timings can be anything, means it will be dynamic and not static. Just put up a ...
2
votes
0answers
38 views

Many cron -f processes on unresponsive server

My Debian server had again become unresponsive and needed to be restartet (SSH login impossible, no longer transmitted log data to another server's MySQL Database, no new FTP connections possible, but ...
1
vote
2answers
29 views

What happens if shutdown command kills my unison cron job?

I have an Arch linux box at home that I power off quite frequently (the power supply is noisy and it annoys my girlfriend...!). The box has a number of cron jobs running the unison utility, designed ...
0
votes
1answer
45 views

CRON job on Ubiquity Edge Router to Modify hosts File

I am trying to setup a cron job on my Ubiquity Edge Router that will modify the hosts file once in the morning and once at night on weekdays, to block various websites from 8AM - 7PM M-F. I have ...
0
votes
1answer
29 views

Read last known value in a Excel data table

I'm working on something but can't figure out a formula and wondered if anyone out there has any suggestions? I'm looking for a formula which will tell me the last status of a job. In the example ...
0
votes
1answer
69 views

Error: bad hour; while reading /etc/crontab

My crons are as following, the error in /var/log/syslog is the title of the post. # week */2 12/1 * * 1-5 tills13 python3 /home/tills13/script.py --sync 1/2 12/1 * * 1-5 tills13 python3 ...
0
votes
1answer
120 views

Cron strange behaviour

I've got a Bash script with all the permission to be excecuted, I attach it to to a cron job, this script basically only kill and restart a specific process, the strange behaviour is that if i run the ...
1
vote
3answers
231 views

Is there a program in Linux which will execute a command and send an email if it fails?

I have a process which is started by Сron like this: timeout 1h /app/longprocess.sh Now I want to be notified by email if something goes wrong with it. Imagine this: notifyme ...
0
votes
0answers
30 views

I want to run a script that will disable my touchpad

I want run a script that will disable my touchpad and it will run every minute. 1. My script is: if [ `lsusb | wc -w` == '76' ] then `/usr/bin/xinput set-prop 16 "Device Enabled" 0` else ...
0
votes
0answers
15 views

How can I give time restricted access to certain Jenkins builds?

I have a Jenkins cluster for automated builds. I would like to let our developers run some builds to one of our UAT environments. However, builds from the developers should only happen when I'm ...
1
vote
1answer
56 views

BASH - Script isn't executing

I have a bash script, which checks a .txt file once a minute, and calls another script, if necessary. I am using cron for this, and this is in root's crontab; * * * * * ...
0
votes
0answers
122 views

Cron does not start: '/var/spool/cron' is not a directory, bailing out

I have an LXC container (The LXC host is Debian 8.1, and the container is Debian 4.0) running mysqld, sshd and a few other things. However, cron does not come up. $ /etc/init.d/cron start Starting ...
0
votes
1answer
54 views

Issues running ruby script as cron job

I have a ruby script which i want to run as cron job.It runs perfectly fine when i run through command prompt on a linux machine. But when i run that same script using a cron job it fails. I get ...
0
votes
0answers
10 views

Configure Cron log to show job number

I have several PHP cron jobs. Occasionally these jobs abort, logging with the appropriate process id etc. However the job number isn't included in the abort log message. Is there a way to configure ...
0
votes
0answers
35 views

How to determine what is updating my freedns/dyndns record with my current IP (on OS X Yosemite)?

Somehow, a while ago, I set a way to automatically update my DynamicDNS record on http://freedns.afraid.org/ with my Mac IP address. I don't remember how I set this or where should I look to disable ...
0
votes
0answers
26 views

High load after killing processes

My Linux home server (a RPi 2 with Raspbian) had a script running every 5 minutes from a cron job (an old rpi2pachube.sh). It usually runs a Transmission daemon. I just discovered that that script ...
2
votes
2answers
59 views

How do I kill one cron job before executing another one?

In the crontab -u pi -e of my digital picture frame I have got two processes. The first one calls feh on reboot and starts a slide show. @reboot bash /home/pi/ledslide1.sh >> ...
2
votes
1answer
65 views

Crontab command not executed

I have a command in my crontab that doesn't execute correctly, this should backup the database everyday at the specified time. I tried running the command in my terminal and is working properly. To ...
1
vote
0answers
65 views

Output redirection of cron jobs to an external file

I have been trying to redirect the output of a cron job to an external file but to no avail. I am using CentOS 7 headless. I created a small script to execute two commands. The script in itself ...
0
votes
1answer
91 views

Problems running nmap export to file in linux as a cron job / bash script

I have a very simple bash script that runs nmap and exports the results to an xml file, and the uses scp to upload the file to a server: #!/bin/sh nmap -sn -oX /home/scan.xml 192.168.20.1-255 wait ...
0
votes
1answer
89 views

cron job does not wait end of process

I made a script which execute commands and others scripts. Some of these actions take time. When I execute my script manually from the cli, it work fine waiting the end of each instruction before go ...
0
votes
1answer
92 views

How to configure a cron.d crontab file for root

What's the procedure for installing a cron.d crontab file to be run as root? I have a script I want root to run every 10 minutes, so I installed the file /etc/cron.d/mycron: SHELL=/bin/bash ...
0
votes
1answer
54 views

Encrypted folder mounted by a cron job, won't keeps mounted

I have an A.sh script that queries a server; retrieves the mount password and mount the Private folder in the client. Then I have a Init.sh script that first check the internet connection status and ...
0
votes
0answers
38 views

Red Hat Linux Cron Daemon Time Error

I have a legacy system that is running Red Hat Linux 5.4 and the cron daemon will not start. It stopped suddenly, I verified the CMOS time and the system time are correct. I've tried resyncing with ...
0
votes
1answer
94 views

Error while trying to execute cron script with space in path

I have a script with several rsync commands in it. The script file is placed in an NTFS partition with owner and group permissions set to root. I have no problems running the file manually from the ...
0
votes
1answer
32 views

Can cron job add some information to cron log?

I am running OSX 10.10.4 and have a cron job scheduled there (it runs python script). Log file is enabled there in accordance with this answer - http://superuser.com/a/595825/172606. But the log ...
0
votes
1answer
24 views

Does a cron daemon drain a laptop battery significantly faster?

I would like to run a small script every hour to change my wallpaper. Does running a standard cron daemon (like fcron, cronie) cost a disproportional amount of battery lifetime? I would not expect ...
2
votes
1answer
92 views

how to get cronjob running every minute

I am following advice on crontab usage online, and I ran sudo crontab -e, and my cron file is: MAILTO=cchilder@mail.usf.edu * * * * * ...
0
votes
1answer
31 views

Service to restart (safely, then if that fails, forcefully) a few different processes on a schedule

I'm currently running a personal project that basically monitors a few things around the clock. One is a process that uses PhantomJS, and the other scans some other APIs, and sends emails if some ...
0
votes
1answer
54 views

I am trying to run a cronjob but it is not executing correctly

I have the following line in my crontab */1 * * * * /usr/bin/screen -S lftp /bin/bash /media/c419d280-9833-4432-b5a5-520f040b87ec/NASDataDisk1/Other/autolftp-sftp.sh >> ...
1
vote
2answers
605 views

Crontab command cannot be executed. Error PAM configurations

Here's the command that I would like to execute but it seems not to work. [mdubois@veloce ~]$ crontab -l Autorisation refusée You (mdubois) are not allowed to access to (crontab) because of pam ...
2
votes
1answer
167 views

Cron Command for twice a month on Sat @12am

I am wondering if someone can help with the simple but sometimes confusing commands regarding Cron jobs. I would like a cron job to run twice a month on a Saturdat @12am.
2
votes
2answers
61 views

Anacron, execute job as many times as it has been missed

If I schedule a job to be run at 3 A.M. every day and it is missed 3 days in a row, will Anacron execute it 3 times when the system comes back running, or only once ? If it is only run once, is there ...
0
votes
1answer
25 views

Cron file in cron.d isn't running at all, why?

I am unable to run my cron file stored at /etc/cron.d but it wouldn't run for unknown reasons :/ can someone please help? Content of my cron file is as follows: ...
0
votes
1answer
51 views

Start Script Even When Mac Sleeps

I wrote a a python script to check the tmperature via API call and then change the color of my Philips Hue Lights regarding temperature and rain. The only problem I'm facing is that the whole thing ...