Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!princeton!beam.Princeton.EDU!subbarao From: subbarao@beam.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.questions Subject: Re: Temporary stdin redirect Message-ID: <5932@idunno.Princeton.EDU> Date: 4 Feb 91 22:42:03 GMT References: <20798@unix.SRI.COM> Sender: news@idunno.Princeton.EDU Lines: 25 In article <20798@unix.SRI.COM> ubi@ginger.sri.com (Ron Ueberschaer x4399) writes: > >There ought to be a way to start a program off with stdin redirected >from a file, then take over from real stdin. Does such a capability >exist in UNIX, preferably under csh? This would be analogous to the >>> append syntax, e.g. > > foo << start.input > >would use start.input until EOF, then act normally, reading the terminal >for remaining input. > You can use cat to do this: cat start.input - | foo -Kartik -- internet# find . -name core -exec cat {} \; |& tee /dev/tty* subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet kartik@silvertone.Princeton.EDU (NeXT mail) -| SUBBARAO@PUCC.BITNET - Bitnet