Hello,
# use
@args = ("/dir1/dir2/prgname","arg1","arg2","arg3","-p","/dev/null");
$rc = system @args;
since "-p" is an argument just as much as "/dev/null" is an argument.
Hope this helps,,,
Aziz,,,
In article <[EMAIL PROTECTED]>, "Ken Cole"
<[EMAIL PROTECTED]> wrote:
> if from the command line a run
>
> /dir1/dir2/progname ar1 arg2 arg3 -p /dev/null
>
> it works.
>
> if I do:
>
> @args = ("/dir1/dir2/prgname","arg1","arg2","arg3","-p /dev/null"); $rc
> = system @args;
>
> The application stops with an error saying the -p /dev/null is an
> invalid argument.
>
> It is a standard argument for the app telling it where to "put" its
> output.
>
> It doesn't matter in what order I put the arg I still get the same error
> message.
>
> I am so confused :-(
>
> Ken Cole
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]