Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everybody, i want a script which opens a linux forums website and entered into my account automatically. for this i was done like this, but it is not working ...
  1. #1
    Linux Newbie
    Join Date
    Oct 2006
    Posts
    107

    Automation

    Hi everybody,


    i want a script which opens a linux forums website and entered into my account automatically.

    for this i was done like this, but it is not working

    1. #!/usr/bin/expect -f

    2. spawn firefox http://www.linuxforums.org

    3. expect "*sername*"
    4. exp_send "myusername\r"

    5. expect *assword*"
    6. exp_send "mypassword\r"

    7. interact

    upto step 2 , the website is opening automatically, then problem comes

    how can i solve this problem

    pls can anybody help me.......

    It is very important to me . i need to use this concept in SSL VPN..

    Thanks in Advance

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    Posts
    2
    You might be able to make expect work if you use lynx/links or other terminal based browser, but your end browsing experience would probably not be ideal.

    What you appear to be desiring sounds dubious at best and I can't see any non-illicit value to it over storing your username/password in firefox. So I would recommend storing your username/password in firefox.

    That said, expect will only work with terminal i/o as far as I know (though my knowledge is pretty limited). gui scripting is a whole different ballgame. See GUI Testing Tools on Wikipedia for more info.

Posting Permissions

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