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

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
13 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
24 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
32 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
23 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
15 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
48 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
24 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
18 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 >> ...
0
votes
1answer
29 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
2answers
72 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.
0
votes
2answers
25 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
17 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
19 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 ...
0
votes
1answer
51 views

Debian - How to get this job in cron.d to run at startup

Using Debian Jessie, I'm having trouble running a one line file I placed in /etc/cron.d The file contains the following line: @reboot myuser /usr/bin/keepass2 /home/myuser/mydb.kdbx -pw:password It ...
0
votes
0answers
7 views

Troubleshooting CRONIC/CRON causing 'No such file' Error

I've got a couple of Cron jobs setup that I have piped through Cronic so that I only get emailed if there is an error. Whenever I run the command in a terminal without Cronic the command executes ...
0
votes
1answer
129 views

Every 5 min cron job between specific time (Windows server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
1
vote
2answers
73 views

Crontab + Forever + node.js + NPM

I cant put my crontab to work. I'm on Ubuntu 14.04x64 So, this is what I did: .root .pw .sudo apt-get update .sudo apt-get install nodejs .sudo apt-get install npm .curl ...
2
votes
1answer
44 views

cronjob opening then IMMEDIATELY closing ssh tunnel

I'm trying to write a script that would open an SSH tunnel to a public-facing server. I've got everything written and working correctly, but the connection doesn't seem to be making it to my server. ...
1
vote
1answer
66 views

scheduling with cronjob to run the php file for only one time

How do I run the php file only once using the cron jobs. i.e., to schedule task to work on 20/06/2015 10:30:00 I tried something like this : 30 10 20 6 ? 2015 /usr/bin/php ...
0
votes
1answer
49 views

Logrotate not rotating my logs

Running on Ubuntu 14.04, I have the following logrotate config under /etc/logrotate.d/logstash /opt/app/logs/logstash*.log { size 1g create 700 app app rotate 5 } This log ...
2
votes
1answer
57 views

How to make cron perform task every hour during business hours?

I'm trying to make a script run twice every hour during business hours on weekdays, and i have the following in my cron setup: # m h dom mon dow command 8,48 8-17 * ...
1
vote
1answer
110 views

Starting script in screen with cron

I apologise if this has been asked before but I am not sure how to question a search query for this. I am extremely new to linux and I have been learning as I go to solve issues. I am trying to set ...
0
votes
2answers
35 views

Database backup bash working via ssh but not in cronjob

I've put together a script to backup my database on a shared host. The script is as follows: mysqldump --databases [db1] [db2] | openssl aes-256-cbc -a -salt -pass ...
1
vote
2answers
161 views

cron expression for every hour starting from specific time

Every one hour (starting from "now") I am able to schedule using this cron expression (expression) using nodejs cron-job. But I need to set cron every one hour starting from a specific time. For ...
1
vote
1answer
61 views

Using anacron in cronie on Gentoo - Doesn't run?

This is the system crontab on a Gentoo system with cronie installed, with the anacron use flag enabled: 59 * * * * root [ ! -x /etc/cron.hourly/0anacron ] && rm -f ...
1
vote
2answers
35 views

Running executable from Crontab

I have a file called Exim_queue_size in the root directory. It contains one line: exim -bpc | mail -s'Exim_queue_size' bert@example.com It has had its permissions set with chmod +x , and is thus ...
0
votes
0answers
29 views

cronjob + upstart for a node.js script

I can start my node.js script as a process like so: start demo because in /etc/init/demo.conf i have: respawn respawn limit unlimited exec node /home/engine/private_js/demo.js >> ...
0
votes
1answer
48 views

Infinite loop of cron jobs with intermediate output from each job

I have a program that outputs stuff to standard output. I am using cron to schedule it which is fine because I am collecting the stuff that it prints outs via email and do some statistical work on ...
0
votes
1answer
49 views

cron jobs are stopped running

I have cron job that run every 5 minutes in my red hat machine. 2,17,32,47 * * * * root /usr/sbin/logrotate -s /var/opt/swms/log/logrotate.status /opt/swms/etc/logrotate.d/syslog After running for ...
0
votes
1answer
31 views

cron job to run for last few days of month (possibly into next)

I'm trying to setup a cron job that will run from the 29th, for 4 days each quarter (Jan/Apr/Jul/Oct). I've setup the following… */10 6-17 29-31 1,4,7,10 1-5 php script.php */10 6-17 1 5 1-5 php ...
1
vote
0answers
23 views

Stop automatic comments in my crontab

I have added the bellow cron jobs in my crontab : 0 5 * * * /bin/systemctl restart gb_subagent.service 28 13 * * * /home/comment.sh &>/tmp/errorcron.log 29 13 * * * bash ...
0
votes
0answers
23 views

Remove orphaned data without corresponding torrents in the rtorrent's list

I use rtorrent with a plenty of frontends like ruTorrent and Transdroid. Often, when I try to delete both the torrent and data through these frontends, the torrent is removed from the list but the ...
0
votes
1answer
63 views

Accidentally deleted all files older than 7 days

A bad written skript located in /etc/cron.daily erroneously executed find * -mtime +7 -exec rm -r {} \; as root user. As a result of this I can no longer login. Beside that the system seems to run ...
0
votes
1answer
32 views

my cron job was running properly but suddenly it stopped executing and I get entry in cron log file as (CRON) Bad Minute. Please help me out

Here's my cron job 00 02 * * * /usr/bin/wget -q http://alaska/samuel/batch/JOB_daily_attendance.php Here's log entry in cron log file crond[26113]: (CRON) bad minute (/var/spool/cron/roots)
0
votes
1answer
29 views

Cronjob: Iterate through files

I want to iterate through a list of bash scripts with a cron-job. I.e. every two hours I want to start another bash script. My idea was to set a new environment variable, each time the cronjob script ...
0
votes
0answers
56 views

etherwake fails to run when ran by cron

I have a cron job to check if a client is connected to my VPN and then wake up some other computers on my network using etherwake. I have the script running every minute and it is actually running ...
0
votes
1answer
90 views

cronjob not executing python script - tried strace

I'm having trouble making a python script run via cronjob. I can run the python script (it's supposed to connect to a database, pull a few records, save that to a csv, then email it) manually just ...
0
votes
0answers
43 views

Synology jailkit debian cron debootstrap

I have a Synology NAS. For advanced using of my server, I installed a debian with chroot-jailkit and debootstrap. I follow those instructions (in french sorry) This is working really fine. I have ...
0
votes
0answers
29 views

aptitude safe-upgrade: apache2_invoke : already enabled messages

On my Ubuntu 14.04 LTS server I run unattended upgrades using that script in /etc/cron.daily: #! /bin/sh PATH=/usr/bin:/bin:/usr/sbin:/sbin export DEBIAN_FRONTEND=noninteractive date >> ...
0
votes
0answers
25 views

Setting a CRON to be run on every 1st and the 3rd Monday

I need to set up a CRON job to be scheduled in every 1st and the 3rd Monday of every Month. I'm using the Plesk control panel for setting these as follows. Currently CRON runs successfully, ...
0
votes
1answer
99 views

automatically start netcat on localhost and remote-host and keep it active

I found this answer by @jeremytrimble on Stack Overflow which explains how you can read a FIFO file over network. I wonder if it’s possible to start these netcat commands automatically, e.g. in a ...
1
vote
1answer
31 views

Running a script if X server haven't been receiving any input for some time

I want to run a certain script when I'm not around my machine so it would run automatically but it would not bother me when I'm working. I created the bash script and queued it with cron, but it ...
2
votes
1answer
230 views

GUI applications in anacron

I'm trying to run a bunch of scripts/commands every day. For this purpose I've configured a user-space anacron as explained here. Anacron is started hourly by cron: contents of ...
0
votes
0answers
51 views

Using ulimit with cron jobs

I'm having a hard time understanding how to use ulimit to manage process resource allocation. It looks like you use ulimit to limit a user's resources, but how do you use it on a specific process? In ...
0
votes
1answer
44 views

Programs for contolling the execution of bash scripts [closed]

Can anyone recommend a GUI based program to control the execution of bash scripts according to time/interval? I'm already familiar with both cron and at and looking for recommended alternatives. A ...
1
vote
2answers
155 views

logrotate in SUSE Enterprise Server

I can't manage to work this dummy config file (I placed it in etc/logrotate.d): /var/log/test_log/mylogfile { copytruncate dateext rotate 3 compress missingok size=+2 } I write to the log (echo ...
0
votes
1answer
43 views

Why doesn't my script run via crontab?

I have this teamspeak server that has a bad habit of crashing sometimes. Therefore I would like to run a script every 5 minute so the server can restart even if I'm not home. I got this script, and ...
0
votes
1answer
48 views

How to use variables in variables in crontab

I'm trying to use variables in variables in crontab: AUTH=user:password BASE_URL=http://... COMMAND_OLDB=curl -u $AUTH $BASE_URL/openligadb >> /var/log/cron.openligadb.log But just getting a ...
1
vote
1answer
164 views

How to set up flask server startup?

I have a web-server that is based on flask+tornado combination. It works inside of a virtual environment (set up with python virtualenv). I want the server to launch automatically on start up, from a ...