Oops sorry about the ‘shortcut’ part! I will call them ‘links’ from now on

# sh mail-external-ip one two
Returned a mail with: “your IP address is now two”. So that means that $2 needs to be my external ip. Let me take a look at your script:
#!/bin/sh
recipients="bart@alternatemailaddress.nl"
IP=/sbin/e-smith/db configuration get ExternalIP
mail -s "hostname -f now at $IP" $recipients <
As of date the external IP of hostname -f is $IP.
EOF
I tested:
# sbin/e-smith/db configuration get ExternalIP
Which resulted in my IP address. So that is a good thing. I PICO’ed the script, and saved it to mail-external-ip.
Now let’s test the script:
# sh mail-external-ip
Yes, I received a mail with my external IP address. So it seems the script works. Now it is waiting till my external IP address changes, so I can see it in action. Is there a way to force an IP change (with a release command?)? And one more question: does this script still work after rebooting the server?
Have a nice day!
Bart