Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

  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.

share|improve this question
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 '12 at 16:03

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
Hi, Please see my edit. I have more doubt. –  Nikhil M Sep 17 '12 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 '12 at 15:58
    
Try to run it from Terminal.app first. If this works as you expect, login automation is the next step. –  patrix Sep 17 '12 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 '12 at 16:01
    
@daviesgeek i did drop the script in terminal. But nothing happens. –  Nikhil M Sep 17 '12 at 16:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.