0

What I want to achieve is to post a form containing 3 fields (forename, surname and email) to a url, but i want the entries to be randomly generated. I want to generate a random word using;

{ head /dev/urandom | tr -dc A-Za-z | head -c 13 ; echo '' }

I then want to insert the output into a {curl -x post -f} in the forename field and then repeat random word generation for the surname field. Then finally i would like to add "forename+surname+@gmail.com" and insert the output into the email field.

I dont want someone to write it for me just teach me what i need to learn to make the script work.

  • Better simply use pwgen to generate random strings and you can use cUrl for this if you don't have javascript generated page – Gilles Quenot Mar 27 at 16:08
  • 2
    Welcome to the site, Mark! I'm curious why you provided shell code but then tagged python. Is python an important part of this problem? Also, consider narrowing your question down from "teach me what I need to learn" towards "here's what I have, here's what I tried, and here's what's not working". This site is geared towards specific questions and answers. Thank you! – Jeff Schaller Mar 27 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.