This works on my machine given the requirements you have described. I'm not
on Unix though (Win98) , and just tested it using a junk .exe I wrote that
prompts for two pieces of information.
open (OUTFILE, 'tempfile.txt');
print OUTFILE "password\npassword\n";
close (OUTFILE);
$a = `passwd -r
While I never got around to posting this problem to this mail list, it has
been troubling me for some time and I found a resolution and thought I'd
share it.
The problem:
I've wrote a simple script that uses LWP::UserAgent to automate some form
posting. It works fine as a .pl, but after using