Skip to content
Advertisement

Tag: cron-task

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

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

Advertisement