stdin and UNIX pipes

Matthew A Henry nr3m at unix.cis.pitt.edu
Mon Feb 18 14:11:51 AEST 1991


Hi,

I am writing a C program in a UNIX environment that will receive input
from other programs through a pipe, causing the shell to change the
default assignment of stdin.  At some point in the program I would like
to request input from the original stdin (keyboard).  Any thoughts on
how I could do this, e-mailed or posted, would be greatly appreciated.

Thanks,
Matt Henry

nr3m at unix.cis.pitt.edu



More information about the Comp.lang.c mailing list