I have been trying to set up a cron job to run a bash script every 30 minutes on a Linux-based compute cluster. The problem is that some functions normally available in my shell are not available to the cron job, causing it to crash. I import all my environment variables (including the ~/.bashrc) but no luck, so I am
Tag: cron
How to set cronjob on wake up from sleep? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Install cron without mail and sql dependencies
I want to install crontab in Raspberry Pi without mail and sql dependencies ? I used apt-get install cron command to install ,installation was successful, but it also installed mail and sql dependencies. followed How to install cron to get installation steps. I need to install crontab only for minimal requirement like sync system time with NTP(Network Time Protocol) upon
why crontab run my shell script successfully but failed to start my binary file program?
i made a shell script like the following: then I use crontab to start it at a fixed time. The result is: crontab run this script(a.log exsited and i can see the log from /var/log/cron , also it shows crontab run it) but mybin is not running (mybin is a while(true) loop program) I can run the script manually from
crontab tee command doesn’t write stdout into txt file, instead clears it [python script] [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Run a command every 5 minutes and stop it at the end of that time
I have to run NodeJS application which has to run uninterruptedly, but I need to stop it and restart it every 10 minutes. I’m Working on a dedicated Ubuntu 18.04 machine. I have read something about cron but I don’t know well how it works. Does it stop the command that was run with it? Answer You can use forever
How to use cron on a simple script
I want to use cron for execute a script periodically. I want to try a simple script first but it does not work. This is my script (scritp.sh) which permission are 700: And this is the crontab file when I edit it with the command crontab -e: EDIT: I have that script on /home/padro/Documents folder. What I do after it
Directory: Is a directory
I’ve set up a cron job to run a Python script to scrape some web pages. /etc/crontab However, the emails are informing me that… /bin/bash: /usr/bin: Is a directory When I manually run the script, it pipes data into my database, but when the cron job executes the script, nothing… What does the /bin/bash: /usr/bin: Is a directory message allude
Python does not find custom installed modules when running from a cronjob
I’m trying to set a python script to run every two minutes using a cronjob, the crontab line is below. The python script is called by a shell script, script.sh, posted below. This python script starts a selenium webdriver, gather some data and saves it to a csv file. A snippet is also bellow. crontab The export DISPLAY=:0 is needed
Cron format for specific date and time, running once a year only
I have to schedule the cron to run at specified time. I have the command like below. But I could not understand how to run only once in a year at a specified date and time. My question is: what should the value for 5th field (Day of the Week) be? Time/date: Jan 2nd 06:30 AM – only once in