My internet connection always down after some hours. ( It is a provider ).
So I want to write a script or program like this:
checking the internet connection;
if not connect {
re-connect to my provider;
} else {
do nothing;
}
I want to set it to Cron so it can be run every 5 mins but,
unfortunately, I don't know how to write it and what should I use.
Shell? C? Perl?
I want some suggestions or sample codes.
Thank you very much.
Rai