Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to create a script to open an url and fill some forms. I don't want to save the form data on the browser, so I think that this script would be a good solution for me.

Any help?

I know how to open the url, just calling firefox url on terminal. Thanks.

share|improve this question
You can use curl or wget to send POST data to a web page. – jordanm Oct 13 '12 at 1:24
There are many possible tools to do this. What exactly are you trying to do? – Michael Hampton Oct 13 '12 at 4:34
See casperjs – Jim Paris Oct 13 '12 at 4:42
@MichaelHampton, almost every day I have to check some informations filling 2 forms with personal data. But I don't want to save the data in my browser for privacy. So I'd like to execute a command on the terminal and get the site with the forms filled. Thanks. – Sigur Oct 13 '12 at 13:26
With appropriate encryption, your browser (depending on the browser) may have better encryption and security for stored forms than the plaintext script you'll be writing to pre-fill the forms. – Alexios Oct 13 '12 at 14:16
up vote 3 down vote accepted

Xdotool lets you programatically (or manually) simulate keyboard input and mouse activity. http://manpages.ubuntu.com/manpages/natty/man1/xdotool.1.html

share|improve this answer

Your Answer


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.