Crontab is a short form of cron table. It is a configuration file that specifies shell commands to run periodically on a given schedule.

learn more… | top users | synonyms

0
votes
2answers
20 views

Cron expression hour 1/12

I'm looking at a system where someone added a cronjob which schedule is like this: 0 1/12 * * * doSomething More commonly, if the hours part in the schedule were */12 then it would execute every 12 ...
0
votes
1answer
37 views

Crontab scheduled backup not running

I need to have the ZIP compression happen on a different drive than the server due to limited space. Here is the command is the line I use in crontab: 00 1 * * * osmc cd ...
-1
votes
1answer
40 views

Why is this crontab not working?

I'm a crontab beginner. Why does this crontab do nothing? I would like it to run the script every minute. 1 * * * * /home/android/test.sh If I just type /home/android/test.sh in the shell it works ...
0
votes
1answer
16 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
34 views

Cron Error : chdir failed (/usr/share/httpd): - Using Nginx

(CRON) ERROR chdir failed (/usr/share/httpd): No such file or directory I checked the log and found the following error. Why does cron tries to change the directory? I am not using httpd. I am ...
0
votes
1answer
47 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 ...
0
votes
1answer
20 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: ...
1
vote
1answer
27 views

Trigger a command upon every `crontab -e` edit

We are using a shared Linux server account where as everyone comes and edits the crontab. Usually we take a backup like this crontab -l > `date +\%Y-\%m-\%d\_\%H:\%M:\%S.txt` Is there an ...
1
vote
1answer
77 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
51 views

Is crontab running old version of file?

This has been driving me crazy: I run a set of Python scripts once per hour on a Raspberry Pi. I updated one of the scripts, but even after a reboot, it still seems to run an old version of the file. ...
3
votes
2answers
217 views

How do I run a `/usr/sbin/` binary in cron?

As root I added used crontab -e to add my script. However the script uses a binary in /usr/sbin/ and I get an error about it not existing when the script runs from cron. How do I fix this?
1
vote
2answers
255 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 ...
0
votes
1answer
14 views

schedule a crontab to shutdown the machine after a specific process (with PID) has finished

Say I have this process with PID = 1234 currently running. I don't know how long it's gonna take for it to finish. Is it possible to schedule a cron tab to keep checking for the status of the ...
1
vote
2answers
138 views

Automating an ssh connection with crontab

I've been struggling to crontab automate a git push process with ssh, and it's proving tricky to setup a key with the ssh agent. Starting with a basic script to test the agent: # set paths (all ...
0
votes
1answer
109 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 ...
0
votes
1answer
73 views

Why are some of my cron jobs not sending emails?

To send emails, I use the standard configuration with: MAILTO="example@gmail.com" Here is the content of my crontab: 00 3 * * 2 echo "Internal Backup (mysql) has started!" && tar -zvcf ...
0
votes
1answer
229 views

cannot rsync via ssh from crontab

I'm having issues transferring files with rsync via ssh. If I just run rsync -avz devel@10.10.10.83:/home/devel/ $/home/user/rsync/servidor it works as expected since the public key is stored in ...
0
votes
1answer
31 views

Incron Job is not being executed

I am using incron to monitor one of my file in /var/www/html directory. output of incrontab -l /var/www/html/test IN_ACCESS /home/intel/test.sh This job is supposed to create a file in home ...
0
votes
1answer
51 views

Check for screen using crontab

Currently, I'm using Debian with the following cronjob for screen at reboot: @reboot screen -dmS app1 /home/app1 @reboot screen -dmS app2 /home/app2 The problem is, that sometimes the application ...
0
votes
0answers
72 views

Crontab: issue launching Node server on restart

Situation Hi, i have a situation where i need to launch a node.js server after OS X reboot. I run node.js with nodemon, which keeps it forever. And i run the nodemon command in a screen process. ...
1
vote
2answers
2k views

How to save Crontab edits?

I ran crontab -e and made some changes, now how do I save it?
0
votes
0answers
96 views

Not able to open crontab -l

I am running crontab -l to view the crons on a RHEL server(v5.10) and getting the below error: crontab: error while loading shared libraries: libaudit.so.1: cannot open shared object file: No such ...
0
votes
0answers
245 views

Correct crontab settings on Cpanel/WHM Cron on CentOS 6.5

I have recently migrated from collocation to Amazon EC2 and setup new WHM installs with CentOS 6.5 I then used the Transfer tool to move all websites to the new server, however I am trying to transfer ...
0
votes
0answers
13 views

CronJob doesnt seem to be executing my SH script

SH script does has permission. (Chmod +x) Timezone on the server is set correctly. So, for some reason it seems as if my cronjob I have setup is not running my SH script. I think it had something to ...
0
votes
1answer
127 views

Crontab x minutes past every hour on Ubuntu

I haven't been able to find an example of how to run a command in crontab at 5 minutes past every hour. I assumed that this would work 5 */1 * * * But it doesn't run. Can anyone help? Thanks in ...
1
vote
1answer
53 views

Crontab cannot find program installed in local user's bin dir

I am trying to run a bash script on a dreamhost account that does some backup operations. The program I use to do the backup is installed in the home directory of the web hosting account under ...
0
votes
0answers
269 views

Why does my bash command not work in cygwin cron?

I have a simple shell script that works perfectly in cygwin under my login: /cygdrive/c/Users/sam.walton/work/inspector/push_db.sh It will download a file via curl and dump it to a Windows share. ...
0
votes
1answer
98 views

Cron jobs on IBM i 7.1

I just found out today that on an IBM i system I am able to use SSH to get to a Unix-like terminal (AIX/PASE) and would like to use this to schedule automated tasks using crontab. Does anyone know if ...
0
votes
2answers
199 views

Why is this cronjob not working?

I have a ruby script in ~/custom_scripts/get_all_products.rb. I want it to run every night at 04:00. Here's what the cronjob in crontab -e looks like: MAILTO="<email>" 0 4 * * * ruby ...
0
votes
1answer
21 views

How to execute a Linux Cron Job from day x to y on crontab?

I found that I can use an hour range by using a slash, for instance, 4-20 to run from 4AM until 8PM. But what about day range? Can I use something like: * * 5-20 * * CMD
0
votes
1answer
142 views

crontab and binaries in /usr/local/bin

I am working in Redhat and have few programs located in folder /usr/local/bin I would like to call from crontab for root user. I thought that by putting binaries in that folder would be sufficient to ...
2
votes
0answers
38 views

Performance loss when having too many files in /etc/cron.d?

Is there an amount of files in /etc/cron.d that would lead to worse performance? There are currently about 50 jobs in. In the future there can be up to 200 files in. Am I correct to expect the cron ...
0
votes
1answer
74 views

setting gvim as editor for crontab

I've see many post saying that by setting the following evnironment variable EDITOR=vim or VISUAL=vim will allow to use vim as code editor for crontab. I would likt to try to use gvim instead ...
1
vote
0answers
35 views

How can I run a cron job from PM to AM? [duplicate]

I want to execute a script once an hour from 20:00 to 08:00. Would the following work? 0 20-8 * * * location_of_script_to_run I'm currently using the following: 0 20,21,22,23,0,1,2,3,4,5,6,7,8 * * ...
0
votes
1answer
389 views

How can I set the terminal encoding when running a crontab job?

I have a crontab job which executes a Ruby script on Arch Linux. It works basically, but when I call "googlecl" to post to my blog, it always shows a "safeDecodeError" exception (eg.: ...
3
votes
3answers
1k views

crontab still sending emails even with > /dev/null

I have a crontab (root) that runs a script and output is set to > /dev/null but I always get the emails whenever it runs. I only want to receive error emails. # Rackspace driveclient update (12pm ...
1
vote
3answers
68 views

Execute script when process reaches 6 hours of lifetime

I wonder if it's possible to execute a perl script when a process with a given PID file reaches a total of 6 hours of lifetime? Can this be done through crontab or similar? The perl script I want to ...
0
votes
1answer
284 views

redirecting output in crontab

I have a shell script to monitor table stats and java apps. It works fine when I run manually. But if I put it in the crontab it will get stuck if I don't redirect it's output with export display ...
0
votes
1answer
164 views

Cronjob immediately shuts down mac after boot

I was messing around with cronjob trying to get it to forcibly shut down at a certain time everyday, but now I can't keep my computer on. It boots, loads whatever needs to load on startup, then ...
1
vote
1answer
178 views

Shutting down Linux server on first Wednesday of every month

I have written a crontab entry as: 00 19 1-7 * 3 /sbin/init 0 It should turn my linux server off on the first Wednesday of every month. Unfortunately the server went off on today (Thursday). Can ...
0
votes
1answer
35 views

Using undefined time in a crontab job

What happens if you program a crontab job like this: * * * * * the command Will it be executed every minute, or what?
0
votes
2answers
56 views

Is there any limitation on file names under Unix?

We are using crontab to schedule jobs and it was not picking the files for processing that contain [ or ] or ¿. Is there any limitation on file names or do these characters mean something in UNIX? ...
0
votes
1answer
589 views

Why does this bash script give an error on Ubuntu but not OSX

#!/usr/bin/env sh export $NODE_CONFIG_DIR=/Users/full/path/to/script/config cd /Users/full/path/to/script /usr/local/bin/node main The script runs locally on OSX (if I adjust the paths for the local ...
0
votes
1answer
312 views

Cron unable to run shell script

I have been trying to get a shell script to run for hours using cron to no avail. I am trying to have the following bash script run every minute #!/bin/bash ...
0
votes
1answer
1k views

Can't get a script to run on startup in Debian 7

I want to get this script to run on startup on my Debian Wheezy server: /usr/bin/bitcoind so I go: $ sudo crontab -e @reboot /usr/bin/bitcoind 2>&1 >/tmp/bitcoind.out & Then save ...
0
votes
1answer
87 views

scheduling a script that accepts one argument in crontab

i am trying to schedule a shell script that runs for every 10 mins, and the script accepts some argument.. i have done it like this 0,10,20,30,40,50 * * * * sh ...
2
votes
2answers
459 views

Run Crontab anytime after 4pm

I am trying to run a script through crontab in osx 10.8.5 that will run at 4:30. 30 16 * * 1-5 /Library/Frameworks/Python.framework/Versions/2.7/bin/python /Users/lego90511/PycharmProjects/Stock\ ...
0
votes
2answers
146 views

Automating python script on a mac not running

I have tried to have this question answered twice now(1, 2). While both were informative none of the solutions have worked, and I don't know why. The first solution was to use launchctl the second was ...
0
votes
1answer
132 views

Why nothing happens after crontab?

After executing fllowing command cursor skips to new line and nothing happens user@machine:~$ sudo crontab Why?
0
votes
1answer
132 views

Getting crontab error on Xubuntu

When running the command crontab -e i get the following error: no crontab for 'myusername' - using an empty one 888 Can anyone please help?