Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, Firstable, I'm very new in scripting. I would like to use lynx to access to a wbsite. This wbsite requires login. Once you have put the login, you ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2004
    Posts
    7

    Lynx logging script


    Hi all,

    Firstable, I'm very new in scripting.

    I would like to use lynx to access to a wbsite. This wbsite requires login. Once you have put the login, you must submit this login, and then a new web requires you a password, and I must submit it.

    I want to automatize this process, but I have no idea how.
    With my script I only launch Lynx, but I don't know how to log in:
    Code:
    pasw="dalmata"
    lynx https://57.5.221.206:900
    echo "$pasw"
    end
    Could some one help me? Thks for your help

  2. #2
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    What kind of login? Basic (Gray popup box) or HTML (Web form)?

  3. #3
    Just Joined!
    Join Date
    Mar 2004
    Posts
    7
    Hi,

    It's a web form, html, I have to put my user in the Account name and press enter:

    [usergo@tito usergo]$lynx https://57.5.221.206:900

    Authorized users only.

    ControlNet Client Authentication Remote Service

    Authentication message: User:

    Account Name : ____________________

    Press submit when done: Submit



    thks in advance,

  4. #4
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    If it uses GET try
    Code:
    https://username:password@57.5.221.206:900/

  5. #5
    Just Joined!
    Join Date
    Mar 2004
    Posts
    7
    Hi Giro,

    I'm sorry, it doesn't work...
    Do u know how to write my username in the web with a script?

    Thks a lot

  6. #6
    Just Joined!
    Join Date
    Mar 2004
    Posts
    7
    Hi all,

    Finally I have seen it's posible to log your actions in lynx with this option

    lynx -cmd_log=filename http://theurl.com

    once you have recorded your actions in the file named filename you can do that:

    lynx -cmd_script=filename http://theurl.com

    and it performs this action

    Thks all !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •