From: "Mason, Andrew" <[EMAIL PROTECTED]>
> Is it possible to issue multiple concurrent commands to system (for > instance) from within a perl script? > > If it is (and I strongly suspect that it must be) would someone please > be so kind as to suggest some terms or perl commands to look up. (I > suspect the term threading might appear but I don't want to start > barking up the wrong tree if I don't have to) open PIPE1, 'first program |' or die "Error: $!"; open PIPE2, 'second program |' or die "Error: $!"; .... should do it ... if you need the output. The problem will be that you'll have to be carefull not to block reading from the pipes. If your script runs under Unix, you may use select(). If you use Windoze you are pretty much f*cked up. select() works only or sockets. Another options to look into are system( 1, "first_program", "params"); system( 1, "second_program", "params"); (doesn't wait for completion, output's "lost".) system( 1, "first_program params > tmp_file1"); system( 1, "second_program params > tmp_file2"); (doesn't wait for completion, output goes to files) use IPC::Open2; or use Win32::Process; or use Win32::Spawn; Depends on what you need and where you run it. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]