open a piped command including stderr 
Author Message
 open a piped command including stderr

Hi Folks,

   I have been trying in vain to get a system() to run
when strerr is being piped.  What am I doing wrong?

On command line this works fine:

      command1 |& tee tee.file

In a system call, this works OK;

      system("command1 | tee tee.file");

Except strerr doesn't get logged to the file.

If I try this, it seems like command1 never executes;

      system("command1 |& tee tee.file");

I also tried;

      open(DATA, "command1 |");

With similar results.  How do I get perl to input from stdin
and stderr of another program?


 Intel, Corp. FM3-162   |     '82 KZ750E  DoD#1158  
 1900 Prairie City Rd.  |     Phone: (916)-356-6470
 Folsom, CA   95630     |     I don't speak for Intel.

Fri, 09 Jan 1998 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Piping in stderr when creating a pipe with the open call

2. "open" pipe with stderr

3. Directing stderr when opening a pipe?

4. Changing STDERR for an open pipe statement (How ?)

5. Open(command |) and stderr

6. piping command output to open()

7. Opening a pipe to a command

8. open COMMAND with a pipe

9. open command that pipes both in and out

10. unix command displayed when using PIPES with open.

11. Killing a pipe-opened command in Win32?

12. PERLFUNC: open - open a file, pipe, or descriptor


Powered by phpBB® Forum Software