#
echo -n "Do you want to email this file?(y/N):"
set line = $<
set names = ($line)
if($line == "y" || $line == "Y") then
sleep 1800
goto mailall
endif
$ cat key.csh
#! /bin/csh -f
# key.csh
set noglob
set stty_setting = `stty -g`
echo -n "Press any key to continue: "
stty raw -echo
# with a little help from Mr Bourne
set key = `sh -c 'dd count=1 bs=1 2>/dev/null'`
stty "$stty_setting"
echo "You pressed key: <$key:q>"
|