http://qs321.pair.com?node_id=513435


in reply to system() does not wait

First off, thank you for adding markup to your post.

Secondly, I suspect that what's really happening here is that something's preventing SCRIPT2 from launching, but only sometimes - unfortunately, I don't know what that error message means in this context.

One suggestion is to add a ";" to the end of the string you're passing to system - this will force perl to use /bin/sh to invoke the script, which may be better at telling you the real reason stuff isn't working than perl is. Of course, if you already have a | character in your system call, that isn't going to help.

I'm very puzzled by the idea that this happens only occasionally.

--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/