Detecting Pipe Using Bourne Shell

Peter da Silva peter at ficc.uu.net
Sun Apr 9 00:57:37 AEST 1989


if [ -t 0 ]
then
	: input is a terminal, display the menu.
else
	: input is a file or pipe, sklorb up some names.
fi
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.

Business: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.unix.wizards mailing list