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?


  1. Automatically connect to Asianet Dataline without having to sign in via the browser.
  2. In startup and free mode the script will keep the connection alive.
  3. 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.

  • 1
    What happens when you try to run the script on its own? Open Terminal.app, make sure it's executable by running chmod +x /path/to/script, then run it with /path/to/script.
    – robmathers
    Sep 17, 2012 at 16:03

1 Answer 1


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 & 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.

  • Hi, Please see my edit. I have more doubt.
    – niksmac
    Sep 17, 2012 at 15:55
  • The "features" that you requested are part of the .sh script itself. Looking at the README file on github, those are the exact features the script provides. Have you tried running it on OS X yet?
    – daviesgeek
    Sep 17, 2012 at 15:58
  • Try to run it from Terminal.app first. If this works as you expect, login automation is the next step.
    – nohillside
    Sep 17, 2012 at 15:59
  • @NikhilMohan To run it, open Terminal and drag and drop the file onto the Terminal window, then hit enter to make it run. Note: You do need to edit the .sh file to include your username and password.
    – daviesgeek
    Sep 17, 2012 at 16:01
  • @daviesgeek i did drop the script in terminal. But nothing happens.
    – niksmac
    Sep 17, 2012 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .