I have a menu for the helpdesk that gives them commands they can run. The problem is when they login and just sit on the menu. I need it to time out after 30 minutes of no activity. In the .profile I have a time out for the user id but when they are in the menu they don't time out. This is what is in the .profile
TO=1800
TIMEOUT=$TO
TMOUT=$TO
export TIMEOUT TMOUT
What do I need to put in the menu to make it time out.
here is the menu
# Name: helpmenu
trap 'print "Problem with Help Desk menu "; exit' HUP INT QUIT STOP
print " 1) Add users"
print " 2) Change password"
print " 3) Logout "
read sel?
while :
do
case "$sel" in
1) . set_accounts
;;
2) . newpass
;;
3) return
;;
esac
print " 1) Add users"
print " 2) Change password"
print " 3) Logout"
read sel?
done
TO=1800
TIMEOUT=$TO
TMOUT=$TO
export TIMEOUT TMOUT
What do I need to put in the menu to make it time out.
here is the menu
# Name: helpmenu
trap 'print "Problem with Help Desk menu "; exit' HUP INT QUIT STOP
print " 1) Add users"
print " 2) Change password"
print " 3) Logout "
read sel?
while :
do
case "$sel" in
1) . set_accounts
;;
2) . newpass
;;
3) return
;;
esac
print " 1) Add users"
print " 2) Change password"
print " 3) Logout"
read sel?
done