Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!csus.edu!ucdavis!csusac!usenet From: jetfuel@babbage.csus.edu (Dave Jenks) Newsgroups: comp.unix.shell Subject: Re: Concatenation of stdin and a file?? Keywords: cat stdin Message-ID: <1991May7.054639.5076@csusac.csus.edu> Date: 7 May 91 05:46:39 GMT References: <1991May6.160308.19911@uts.uni-c.dk> Sender: usenet@csusac.csus.edu (News account (alt)) Organization: California State University, Sacramento Lines: 21 In article <1991May6.160308.19911@uts.uni-c.dk> neulynne@uts.uni-c.dk (Mogens Lynnerup) writes: >What he would like to do is to concatenate stdin and some file so he can do >something like: > telnet < > >and when the file is exhausted telnet should continue accepting input from the >keyboard and NOT exit due to an EOF-condition from the file. How about: cat some-file /dev/tty | telnet I did something like this, only /dev/tty was first, because I needed to manually prime a complex piece of software. "It worked for me." --Dave -- ======================================================================= "Pro is to con, as progress is to Congress..." >>-@@-> Dave Jenks {uunet | ucbvax!ucdavis}!csusac!jetfuel =======================================================================