cancel
Showing results for 
Search instead for 
Did you mean: 

logout script

SOLVED
Go to solution
chetana07
Frequent Advisor

logout script

Is there any script that run at the time of logout in HP-UX 11.11i?
5 REPLIES
Ivan Krastev
Honored Contributor

Re: logout script

Use .logout file in $HOME directory.

See this doc - http://docs.hp.com/en/B2355-90046/ch16s06.html


regards,
ivan
Dennis Handly
Acclaimed Contributor

Re: logout script

>Ivan: Use .logout file in $HOME directory.

The .logout file is only special to the scummy C shell. If you read Ivan's link carefully, the trick is in the trap command:
trap "$HOME/.logout" 0
Ralph Grothe
Honored Contributor
Solution

Re: logout script

In non-C shells simply setup a trap for SIGEXIT like
e.g.
trap 'echo bye $LOGNAME' EXIT

put in your .profile
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: logout script

Oops, the message would disappear too quickly to be readable, so append a ";sleep 3" for instane ;-)
Madness, thy name is system administration
chetana07
Frequent Advisor

Re: logout script

thanks for the reply