Operating System - HP-UX
1834009 Members
1834 Online
110063 Solutions
New Discussion

Re: Clear Screen on logoff

 
Robert Landstrum
Occasional Advisor

Clear Screen on logoff

I need to be able to clear the users screen when they exit or logoff from their telnet session.

Any idea what to do?

Thanks
If I thought the answer was easy, I would have called HP.
6 REPLIES 6
Victor BERRIDGE
Honored Contributor

Re: Clear Screen on logoff

woulnd just clear do?
in the .profile
James R. Ferguson
Acclaimed Contributor

Re: Clear Screen on logoff

Robert:

Create /home//.logout and place a 'clear' and/or whatever else you want in this file.

...JRF...
eric stewart
Frequent Advisor

Re: Clear Screen on logoff

Where might .logout be documented?
TIA
Good help is easy to find within forums
Robert Landstrum
Occasional Advisor

Re: Clear Screen on logoff

I am having trouble trying to assign points to the responses I have received so far.

But neither of these suggestions works for me. My users are telnet'ing in to my system and their .profile starts of the application. When they exit out of the application their telnet session is ended. I would like to clear the screen before the telnet session has ended.

I have tried putting the ;clear at the end of the statement that starts the application but with no luck.

Thanks again.
If I thought the answer was easy, I would have called HP.
James R. Ferguson
Acclaimed Contributor

Re: Clear Screen on logoff

Robert (and Eric):

My original post wasn't nearly as clear as I should have made it. With apologies, here is the whole solution:

Create an executable script with whatever commands you want executed upon logging out. Call the script ".logout" and place it in the user's HOME directory.

In the user's .profile, change the logout trap from the standard to .

...JRF...
Victor BERRIDGE
Honored Contributor

Re: Clear Screen on logoff

Isnt your application a script itself?
In which case you would have in your .profile
I suppose a call of the application before the exit like: exec
In that case the clear should be the last line of your