All Questions
1,767
questions
1
vote
1
answer
39
views
Python Not Recognized in Scripts Executed via Cron
Summary
I'm obtaining an error when running a bash script via cron. The script errors out when it reaches the following command; keep in mind that the bash script swaps out ${END_DATE} with the date ...
1
vote
0
answers
61
views
Linux script for running commands from a file [closed]
There are 2 ip address where I want to add a job to cron which runs at 7am daily.
In one place the cron job runs everyday and in the other it runs only on the 1st of month.
Instead of setting up 2 ...
0
votes
0
answers
30
views
Copy to Google Drive on Mac works in shell script but not in cron or launchctl job
I am trying to setup a nightly task on my Mac to edit a file and then copy that file to my Google Drive which is accessible directly from my Mac's file system through Google Desktop integration. I ...
0
votes
1
answer
47
views
cron log shows the job is running but actually the job is failing
I have a cron job in aws ec2 instance defined as:
0 2 * * * /home/ec2-user/scripts/backup.sh
0 3 * * 0 /home/ec2-user/scripts/cleanup.sh
0 * * * * /home/ec2-user/scripts/health_check.sh
I checked ...
0
votes
1
answer
29
views
Python Selenium execute from cronjob linux and shell script
I have a shell script that executes a python script through a cronjob.
If I run the shell script or python script it executes without any issues.
It only has issues when I execute it from a cronjob.
...
0
votes
0
answers
58
views
reboot via script run by cron
I'm going nuts over something seemingly simple.
I want to run a script every minute which reboots when it finds something in a log.
It simply does not run via cron.
My script in /home/root/...
0
votes
0
answers
70
views
Bash Script to Delete Backup Files Older than 7 Days From a Google Drive Folder
I created an automatic backup of my files from database to google drive and I used cron job to schedule it to execute every day. Now I want to auto delete these files that are older than a week from ...
0
votes
1
answer
52
views
Error in executing gcloud commands in bash script in crontab
I have written a bash script that uses
gcloud command to activate service account and
gsutil command to move files to GCS bucket.
When I run the script using bash command, it executes well.But when I ...
2
votes
3
answers
63
views
Bash script (cron job?) to process files uploaded to a directory?
Let's say I have a tool called jpeg2txt. I need to write a bash script that:
Constantly checks if there are any new files (JPEGs) in source directory
Launches jpeg2txt on them, and writes the results ...
0
votes
1
answer
102
views
crontab won't open chromium at boot
I set crontab to execute a bash script at boot
@reboot bash /home/user/linuxconfig/startup.sh
During every boot I see the bash is executed because it creates dummy files.
#!/usr/bin/bash
touch /home/...
0
votes
0
answers
41
views
Bash script and Crontab is not working as expected
I want to schedule cron job for my file webScraping.py. When I execute manually everything work perfectly.
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &...
0
votes
2
answers
64
views
Variable value substitution in shell script
Suppose in a Linux shell script, I have WHATIF_POLLING_SCHEDULER="0 * * ? * *".
Now I do: ESCAPED_WHATIF_POLLING_SCHEDULER=\"${WHATIF_POLLING_SCHEDULER}\"
CRON1="-Dwhatif....
0
votes
0
answers
39
views
Crontab doesnt seem to be working with docker?
I setup a deployment script which creates the whole deployment environment. At the end of the script it creates a rebuild_docker.sh file so that my deployment application is always on the same version ...
0
votes
1
answer
121
views
How to validate crontab scheduling values in bash
I am writing a bash script that accepts the same scheduling values as the crontab does (day of the week, month, etc).
So far my script is able to accept an asterisk (*) for every value, or an integer ...
0
votes
3
answers
93
views
Crontab fails but command works in terminal
I'm attempting to schedule an R script that does a scrape, some calculations and then emails a small group of people twice a day. I've gotten the script working well but I can't seem to get the ...