> -----Original Message----- > From: Ted Markowitz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 23, 2001 4:41 PM > To: [EMAIL PROTECTED] > Subject: Responding to child process request for input > > > Oh great IPC gurus, > > I'm trying to run another program from my script that takes a number of > command-line args. Normally, the child program will execute > successfully---using readpipe or a variation on open to execute > it---when given the proper arg list and it sets a return code which I > can examine via $?. So far, so good. The problem arises in the case of > the program's "delete" argument, which displays an "Are you sure? (y/n)" > back to STDOUT and requires a confirming "y" to actually execute it.
Sometimes programs have an option (e.g. rm -f) to suppress such queries. If you don't have such, then use the Expect module to control the other program. http://search.cpan.org/search?dist=Expect -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]