The intention is to run the following command once a day to update the sf_events.json
file in the TownSounds_Javascript/data
directory:
/Library/Frameworks/Python.framework/Versions/3.7/bin/aws s3 cp s3://sfbucket.bucket/sf_events.json /Users/Documents/TownSounds_Javascript/data/sf_events.json >> /Users/Documents/logs3.txt 2>&1
This command is entered on crontab as 03 23 * * *
. However, the file is not being overwritten. The only way to successfully overwrite the file is to use * * * * *
instead. The output logs appear normal, and it appears as though the command is being executed normally.
What could be the reason for the command not working with 03 23 * * *
?