Closed billglick closed 4 years ago
I could never get this script to work when run from a CRON environment. Finally tracked it down to the $HOSTNAME environmental variable not being set. I think CRON sessions don't have the full BASH environmental variables set.
Good find @billglick ! Looks good to me.
I could never get this script to work when run from a CRON environment. Finally tracked it down to the $HOSTNAME environmental variable not being set. I think CRON sessions don't have the full BASH environmental variables set.