Path: utzoo!attcan!uunet!lll-winken!uwm.edu!rutgers!carssdf!usenet From: usenet@carssdf.UUCP (John Watson) Newsgroups: comp.lang.perl Subject: open pipe in and out Keywords: perl pipe Message-ID: <250@carssdf.UUCP> Date: 11 Jul 90 12:21:55 GMT Organization: C.A.R.S.,Middlesex,NJ Lines: 11 I have a perl script that needs to send a few lines to a filter process and read a few lines back. (I have no sockets, forget that.) I would like to do something like pipe, fork, exec, dup2, etc... The way I do it in "c". But the key here is that I need to be able to use something like dup2 to make the pipe in and pipe out handles look like STDIN and STDOUT to the child process before I do the exec. I would like to retain the filter aspect, reads STDIN, writes STDOUT, of the child process. If that were not possible, I would still need a way to pass the file handle numbers (the fd ints, not the *FILE's). Any Ideas? John Watson ...!rutgers!carssdf!usenet