ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i wanted to write a simple shell script that can open firefox and then enter a username and password into the default page it opens. this page already centers the cursor onto the username box so i jus want it to type stuff there, tab and write in the password box and then enter them.
is this possible ?
Is CURL something that would work for you here? I guess it depends on what you want to do with the result of the userid and password being entered into the page. If you're trying to extract data from the result page that you can use for something else, then CURL and the shell script can do that.
im working on a script that autmatically connects me to the wireless in my uni using ndiswrapper. once connected i then have to open firefox and type in my username and password to log into the uni's network.
In Firefox, when you fill out a username/password pop-up, you're normally asked if you'd like Firefox to save that information for use the next time the pop-up is displayed. (Unless you've turned off the option. If so, you can restore it in your config file. [Just enter about:config as a URL.])
After you've saved the info, all you'll need to do is click on the "O.K." (or whatever the University has chosen to use) button, which should be quick enough for you.
This is not a complete answer to your question, but it's an easy one to implement.
For a complete solution, look at the documentation about creating a Firefox extension, and write the code you want into an extension you can install in FF. Or, alternatively, look at the "GreaseMonkey" Mozillia extension, which, if installed, will let you write a Java script file to do what you want when the University pop-up is displayed.
Last edited by PTrenholme; 10-12-2006 at 10:36 AM.