in reply to SIGINT in system() with shell metachars

Why no use qx ?
$sysret = qx(prog1 file1 | filter -v $version > $tmpfile 2>&1);
Though I haven't tested the code I use this way of
executing shell-commands in some of my own code so it
should work... (I hope ;-) )

/k2

Replies are listed 'Best First'.
Re: Re: SIGINT in system() with shell metachars
by IlyaM (Parson) on Jun 25, 2003 at 16:10 UTC
    It will not work. qw() is just another syntax for backtics (see perlop) which don't return process status but rather return process output.

    --
    Ilya Martynov, ilya@iponweb.net
    CTO IPonWEB (UK) Ltd
    Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
    Personal website - http://martynov.org