Thread View: comp.unix.shell
3 messages
3 total messages
Started by Oscar Herrera
Mon, 17 Dec 1990 19:02
Named pipes and stdin and stdout question
Author: Oscar Herrera
Date: Mon, 17 Dec 1990 19:02
Date: Mon, 17 Dec 1990 19:02
7 lines
722 bytes
722 bytes
I have a program that takes input from the keyboard and reports status to the screen. I'd like to run this program such that its standard input comes from a named pipe and its standard output is sent to another named pipe. Is this possible ? Or, does is it necessary that the program programatically read/write from/to named pipes ? Oscar Herrera
Re: Named pipes and stdin and stdout question
Author: Oscar Herrera
Date: Fri, 21 Dec 1990 00:57
Date: Fri, 21 Dec 1990 00:57
4 lines
512 bytes
512 bytes
Thanks to all that emailed me information about pipes. I've solved my problems. Oscar Herrera
Re: Named pipes and stdin and stdout question
Author: Dan Mercer
Date: Fri, 21 Dec 1990 18:35
Date: Fri, 21 Dec 1990 18:35
31 lines
1953 bytes
1953 bytes
In article <8720010@hpdmd48.boi.hp.com> oscarh@hpdmd48.boi.hp.com (Oscar Herrera) writes: :I have a program that takes input from the keyboard and reports status :to the screen. I'd like to run this program such that its standard :input comes from a named pipe and its standard output is sent to another :named pipe. Is this possible ? Or, does is it necessary that the :program programatically read/write from/to named pipes ? : :Oscar Herrera Pipes block until they are opened at both ends. Named pipes are no exception. I have written programs that run in background sitting on an open (tvp - turbo vi pattern importer - I start it up in background from my .profile. In vi, I type in a line of code, for instance :stty hit Pf7, which sends the data to in input FIFO. Tvp opens the fifo and reads the current line from the vi file. Vi then opens the output fifo with a :r command. That blocks vi. The 'stty' string is run through an in memory database, matches against an array of entries, and the matched data - all the necessaries to run character at a time termio functions - are written to the output fifo and wind up in my file.). I've also written shell scripts that run 'bc' - the interactive desk calculator - in the background. -- Dan Mercer NCR Network Products Division - Network Integration Services Reply-To: mercer@npdiss1.StPaul.NCR.COM (Dan Mercer) "MAN - the only one word oxymoron in the English Language"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads