a question on input redirection

spear at ihuxm.UUCP spear at ihuxm.UUCP
Mon Sep 19 23:15:12 AEST 1983


Thanks to all those who have suggested variations on the
cat file1 filen - | program
method for taking some input from a file then from the keyboard.
I was aware of this approach, but was hoping there was a more
elegant way of handling this.  My major concern with the use of
'cat' is the very real possibility of leaving the cat process
running if the program terminates on it's own (that is, not due
to an end of file from the termination of cat).  This can result
in strange occurrences where some of your input is taken by the
cat process and shipped to nowhere while the rest is taken by the
shell.

Thanks for all the responses.  Any other ideas would be welcome.

Steven G. Spearman
ihnp!ihopb!spear



More information about the Comp.unix.wizards mailing list