1847230 Members
2545 Online
110263 Solutions
New Discussion

CDE problem

 
SOLVED
Go to solution
Ana Lizcano
Occasional Contributor

CDE problem

Hello,
I want execute a command when I logout from a cde session in a particular user.
is there any way to customize the exit procedure? I mean, like sessiontc in login way.

Thanks,
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: CDE problem

Alex Glennie
Honored Contributor
Solution

Re: CDE problem

yes exactly the same as sessionetc create a script but call it sessionexit and place it in $HOME/.dt/sessions as with sessionetc see CDE advaced users guide pg 36 and beware the typo .... the directory they suggest = $HOME/.dt which is WRONG see above !
Alex Glennie
Honored Contributor

Re: CDE problem

JRF - looks like I've got competition ! must get faster ;)
federico_3
Honored Contributor

Re: CDE problem

insert in your .profile:

trap "path_of_your_script" 0

and the script wiil be executed when you exit from the session
James R. Ferguson
Acclaimed Contributor

Re: CDE problem

Hi Alex!

...ah, my friend, but I can only count on one hand what I know about CDE! :-))

...JRF...
Robin Wakefield
Honored Contributor

Re: CDE problem

Just create the file:

~/.dt/sessions/sessionexit

- that should do the trick.

Robin.