This post is mostly the equivalent of one of a previous post which initially was in bash.
I have had the need to send mutiple email messages which contains for each one specific URL, this message had to be sent to multiple recipients.
I have written a little script which generate number for your next lotto ticket.
Schedule it in the crontab to get your number each day you do need it.
Having dynamic IP addressing from your Internet Provider (ISP) could give you some trouble; especially when you need to remotely accessing machines;
I had to write a little script that regulary based checks my external IP; And if it change then sending to me an email.
Schedule it into your crontab and you are done.
Below, the script :