This is a small shell script that checks your Reliance Netconnect Prepaid account balance and emails it to a designated email address.
The Netconnect number and email address are to be saved in a file called .netconnectrc
in your home directory with the following variables:
netconnect_number="1234567890"
email_addresses="comma separated list of email addresses"
I suggest setting this up as a cron-job. The necessary crontab entry is:
00 18 * * * /path/to/netconnect.sh
(This assumes you want the email to be sent at 6pm daily)
You may want to replace the mutt
command by the appropriate mail
command if you prefer using Mailx
directly.
You can edit the crontab entry using the crontab -e
command.