Concatenation of stdin and a file??
Dave Jenks
jetfuel at babbage.csus.edu
Tue May 7 15:46:39 AEST 1991
In article <1991May6.160308.19911 at uts.uni-c.dk> neulynne at 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 <some-node> < <some-file>
>
>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
=======================================================================
More information about the Comp.unix.shell
mailing list