Schedule Python Script in Bash?
问题 I am new to scheduling python scripts and need to start a script so it can run for a day or two. I am not allowed to use cron in my environment so am using this bash script. What is a simple test I can do to make sure the python file runs? How would I know that my file ran? And also, if it throws an error, how can I make sure I am notified? Any help would be appreciated. #!/usr/bin/bash while true do DATE="$(date +'%d')" MONTH="$(date +'%m')" YEAR="$(date +'%Y')" HOUR="$(date +'%H')" MINUTE="