🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
2 messages
2 total messages Started by sivesh pradhaan Tue, 11 Dec 1990 20:19
ksh and .logout
#1962
Author: sivesh pradhaan
Date: Tue, 11 Dec 1990 20:19
10 lines
723 bytes
does any one kmow if ksh executes any file when you logout of it? If yes then
what's the name of this file? If no then how does one get ksh to execute a
few stuffs right before it exits? I guess one simple solution would be

     alias lo='some_stuffs; exit'

Is there any better way of doing this?

-Sivesh 
Re: ksh and .logout
#1957
Author: Lee Ziegenhals
Date: Sat, 15 Dec 1990 01:05
10 lines
655 bytes
sivesh@rebels.ingr.com (sivesh pradhaan) writes:

>does any one kmow if ksh executes any file when you logout of it?

I put the following line in my .profile:

	trap '$HOME/.logout' EXIT

The EXIT condition causes the specified command to be executed when
ksh exits.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads