LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-24-2012, 12:27 AM   #1
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 50
webpage login by shell script


How to login a webpage using shell script.
I want a shell script that if it is run, the webpage should be opened automatically, the username and password should be filled in respected fields automatically what we mention in shell script, submit button should be clicked and it redirects automatically on 'My account' Page.

Please tell me, how to do other activities on website through running shell script like open a particular link, click on particular button, go back- fwd etc.
Please reply...
 
Old 01-24-2012, 09:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by pavi_kanetkar View Post
I want a shell script that if it is run, the webpage should be opened automatically, the username and password should be filled in respected fields automatically what we mention in shell script, submit button should be clicked
Depends on what's used. If it's a CGI built with Javascript then probably not, unless you can figure out the resulting POST, for everything else start with 'man curl'?
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script executed on login kefi Linux - Desktop 13 03-01-2010 10:04 AM
entering username and password for a webpage through shell script abhijeetmirjolkar Linux - Newbie 1 07-01-2008 05:59 AM
Shell Script at login soulxcavtor Linux - Software 3 06-05-2006 09:36 PM
How to check in a script whether the shell is login or non login? frankie_DJ Programming 5 09-06-2005 06:01 AM
telnet login via shell script lethe Linux - General 8 05-13-2002 09:31 AM


All times are GMT -5. The time now is 10:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration