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 nis username < tempfile.txt`; unlink 'tempfile.txt'; ----- Original Message ----- From: "Brian Gibson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 04, 2000 1:53 AM Subject: perl interacting with Command Line programs > I want to use perl to call an exe and when the exe prompts > you for certain answers, the perl script types them in. > > This is actually for automating the unix command "passwd -r nis username" > so it responds to the "New Password:" and "Confirm New Password:" > prompts. I am an avi perl win32 user and thought it would be useful > in both the UNIX and NT port for other exe's. > > Thanks in advance, > [EMAIL PROTECTED] > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users