Listing 2: snew.ss
# Coffin test shell script
# using get_char instead of the
# unix shell read
#
echo "Enter Password \c"
password=`./get_char`
echo "\n"
./coffin -d $password
if [ $? = 0 ]
then # good password
echo "RUN THE PROGRAM"
else # bad password
echo "ACCESS DENIED"
exit 1
fi
/* End of File */
|