RE: Newbie system call question

2001-07-18 Thread Ken Cole
Hello, > Seems like you're stuck again. Okay, the problem here is the > ">/dev/null". Notice the ">" sign over there. It's the shell > redirection metacharacter which causes "the shell" to pipe > the output of > one script to a file. When you use "system" in list context, > like you're > doin

RE: Newbie system call question

2001-07-18 Thread Abdulaziz Ghuloum
Hi again,, Seems like you're stuck again. Okay, the problem here is the ">/dev/null". Notice the ">" sign over there. It's the shell redirection metacharacter which causes "the shell" to pipe the output of one script to a file. When you use "system" in list context, like you're doing, you will

Re: Newbie system call question

2001-07-18 Thread Abdulaziz Ghuloum
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 com

Newbie system call question

2001-07-18 Thread Ken Cole
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 argume