Reading Input in a Script

#!/usr/bin/sh
echo "Enter reason:"
echo "> \c"
read $reason
$reason >> access.log

This doesnt work for me. Can someone tell me how I would read the input from what the person types, and then append that to the log file?

Regards

Try:

#!/usr/bin/sh
echo "Enter reason"
echo "> "
read reason
echo $reason >> access.log

or on solaris (maybe others)

#!/usr/bin/sh
/usr/ucb/echo -n "Enter reason > "
read reason
echo $reason >> access.log

Thanks worked - I put
date >> ktekaccess.log
just before appending $reason to the file to add more value to the entry.

Regards