I've created a bash script which I can run on my home computer which will grab my external IP address and e-mail it to my gmail account. I've done this since work has just started blocking DynDNS and I wanted a way of getting to my TiVo on my home network from work.
Anyway the script "GetMyIP.sh" works fine when I run it from the terminal and I get a nice e-mail with my home computers external IP address in it.
Then I thought I'd like to run it automatically, so I tried to put in a cron entry to run it at 00:30 evry day like this
but this doesn't seem to work. Instead of an e-mail like theis
# mmm hhh ddd mmm DAY COMMAND
30 00 * * * /home/carl/RunGetMyIP.sh
I get a message
IP ADDRESS = XX.XX.XX.XX
Do I need to declare the path to ssmtp explicitly?
/home/carl/RunGetMyIP.sh: line 18: ssmtp: command not found