
Kanji
User
Jun 16, 2000, 6:55 PM
Post #2 of 3
(5096 views)
|
You don't say what command, but you should check to see if it has a batch mode, and run it in with whatever args are required to make it run as such. On some systems, you could also pipe a Y into the command before hand ( system("echo y | command"). And, finally, you can use a comibination of pipe and exec to read from/write to an external command. IIRC, IPC::Open2 and IPC::Open3 try to simplify the last, but can still deadlock (ie, both you and the command trying waiting for the other to say something).
|