Skip to content
Advertisement

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, so I am

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

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

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

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

Advertisement