- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- after-session cleanup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2001 11:46 AM
07-07-2001 11:46 AM
after-session cleanup
carried out whenever a user logs out
(the opposite of .profile)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2001 01:40 PM
07-07-2001 01:40 PM
Re: after-session cleanup
You can add a trap to your $HOME/.profile that looks like this:
trap "$HOME/.logout" 0
Then, in $HOME/.logout place whatever commands you wish to have run when you logout.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2001 12:45 AM
07-09-2001 12:45 AM
Re: after-session cleanup
trap " complete_path_your_script; echo 'HAVE A NICE DAY'" 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2001 02:00 AM
07-09-2001 02:00 AM
Re: after-session cleanup
not work for users running a CDE
session. There must be some other
way; e.g., how is the system told to
empty the trash folder after a user
logs out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2001 02:08 AM
07-09-2001 02:08 AM
Re: after-session cleanup
From Knowledge Base document #A5823933A:
Perform the following procedure to execute the 'sessionexit' script each time you perform a system logout:
1. cp /usr/dt/config/Xreset /etc/dt/config/Xreset
2. Edit '/etc/dt/config/Xreset'.
3. Execute your script file within the 'Xreset' file.
...JRF..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2001 02:22 AM
07-09-2001 02:22 AM
Re: after-session cleanup
~/.dt/sessions/sessionexit
this should run whenever you logout.
Robin