This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BASED on https://gist.github.com/why-not/18c5c0c00ee4cddf5ca176f770918639 | |
# This is how the cron file should look like. | |
# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sn$ | |
# * * * * * /home/script/stop-idle-gcloud.py > /tmp/user_error.log | |
## Watchout, for some reason cron files seem to require an extra new line at the end, | |
## consult this SO: https://askubuntu.com/questions/23009/why-crontab-scripts-are-not-working | |
## Also take care to setup a PATH variable for the cron explicitly. It doesn't see |