Operating System - HP-UX
1835064 Members
2200 Online
110073 Solutions
New Discussion

Re: POSIX Shell Menu scripting

 
Michael Grmek
Occasional Contributor

POSIX Shell Menu scripting

When exiting a menu script - is there a method
that will allow you to exit from the shell at
the same time you exit from the menu script?
2 REPLIES 2
Rita C Workman
Honored Contributor

Re: POSIX Shell Menu scripting

You could try adding in their .profile

exit

Just a thought,
James R. Ferguson
Acclaimed Contributor

Re: POSIX Shell Menu scripting

Michael:

Yes, 'exec' your script. When you exit the script, you will be logged-off. This can be done in the $HOME/.profile if you want to launch your menu-script every time the user logs-in and you want them to be logged-off when they leave the menu. Put "exec script_name" as the last .profile entry.

...JRF...