Skip to content

Instantly share code, notes, and snippets.

View sharang-webonise's full-sized avatar

Sharang Dashputre sharang-webonise

View GitHub Profile
@sharang-webonise
sharang-webonise / webonise_cyberoam_login.sh
Created June 3, 2014 11:49
This script connects you to the internet through Cyberoam
Replace NAME with your username and PASS with your password that you use to connect to Cyberoam.
Now add this script to your your crontab like so:
$ crontab -e
Add the following entry:
* * * * * /home/webonise/.shell_scripts/cron_jobs/webonise_cyberoam_login.sh
Replace the path with wherever the above mentioned script lies on your system.
The script will be executed every minute. It will check if you are connected to the Internet and if not it will connect you.