How to make a script which runs on login? My ISP requires me to login to their server and keep the login page up so I can use the Internet, which makes me uncomfortable while I download some big files. After some research i found a script which is supposed to run on Linux environment, which you can find here.
Can I make this script run on my Mac while I log-in?
Also the script provides some keep-alive functions, can I make them work in my Mac?
Can I add these features with script?
Features

Automatically connect to Asianet Dataline without having to sign in via the
browser.
In startup and free mode the script will keep the connection alive.
The script will automatically reconnect if connection breaks because of a
power failure or a line problem.

I am using a Macbook 5,2 running Lion 10.7
Please let me know if you need any more info.
Yes that script should run on OS X. It is a .sh file and it's using the bash shell, so I'd assume that it would run, unless it requires programs that aren't installed on OS X by default.
To have it run on login:
Just go to System Preferences > Users &amp; Groups and click on the user that you want the script to load. Click the + button to add a login item and navigate to your script. The script will load automatically on login.