Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to know if there was a way to login to a website by specifying login credentials in a shell script and automatically login by running the shell script.

share|improve this question
    
Are you using Firefox? have you tried any of the script extensions? –  david6 May 10 '12 at 8:42
    
@Srinivas Gowda if login to website automatically is only thing you want then I could help you. BTW which browser you use? –  virpara May 25 '12 at 14:58
1  
I use Firefox. And just to keep you posted I'd like to do this using a shell script not using the browser's save login and password method. –  Srinivas Gowda May 25 '12 at 15:56
1  
    
I think more info on what you are trying to achieve by logging in to a website is needed. i.e. are you downloading a file, or do you want your web browser to automatically be logged in to a site when you open it, etc. –  reverendj1 Sep 6 '12 at 19:05

1 Answer 1

You can use lynx to automate the login and it provides much more features. Refer the man page of lynx here

lynx can be easily integrated with a shell script. Using lynx with -auth parameter you can pass a id and password for authentication.

-auth=ID:PASSWD set authorization ID and password for protected documents at startup. Be sure to protect any script files which use this switch.

Hope this helps.

share|improve this answer

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.