Working with perl I have used stdin and the stdout commands to capture input from external workings. Say for instance I wanted to create a script in PHP that adds a new user to the .htaccess file.
I could do the following:
htaccess .htaccess johndoe;
Then it will ask for the password twice and then proceed to update the password file. I need to be able to put the password in here.
Another example would be say I wanted to use a script to add a pgp key to my keyring and verify it. There are several differant steps that need to be filled out. Not sure of the method to do this, any thoughts.