Skip to content

Tag: cron

Alternative to cron that retains environment variables

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,…

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 require…

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 a…

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 th…

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