On Thu, 31 Aug 2000, Lutz Jaenicke wrote:
> On Thu, Aug 31, 2000 at 09:33:09PM +0300, Sami Lehtinen wrote:
> > Lutz Jaenicke, on August 31. 2000, wrote:
> > : Unfortunately, I didn't find a way to automatically "ssh-agent -k" (kill) the
> > : ssh-agent when logging out, so that ssh-agents are left sitting around
> > : (with a parent process id of 1).
> > :
> > : Any ideas?
> >
> > ssh-agent stores its PID to SSH2_AGENT_PID (in the case of ssh2) or
> > SSH_AGENT_PID (ssh1) environment variable. You could find a way to
> > either to directly kill it directly with that (kill $SSH2_AGENT_PID)
> > or, if the variable isn't there anymore when you're logging out, store
> > it to a file during login (echo "$SSH2_AGENT_PID" >
> > $HOME/.ssh-agent2.pid) and kill it with that (kill `cat
> > $HOME/.ssh-agent2.pid`; rm $HOME/.ssh-agent2.pid).
>
> Thanks. Obviously my question was not precise enough :-)
> I actually know how to kill it. I however did not find a place to have it
> killed automatically when logging out of CDE. When starting CDE,
> $HOME/dtprofile is read, but I couldn't find a script that is executed
> on logout to put the kill sequence in (just like the .logout that complements
> the .login for [t]csh)...
Hello!
I had the same problem. After a lot of searching I found the
place! I did a link to .logout.
% ln -s .logout .dt/sessions/sessionexit
More to read:
% man dtsession
Regards: H�kan
--
H�kan K�llberg
Simulina GmbH
[EMAIL PROTECTED]