[mdlug] logout script?

Wojtak, Greg GregWojtak at quickenloans.com
Wed Dec 20 16:57:59 EST 2006


Either or... the problem is that since we exec the actual binary of the
application, /usr/bin/ksh gets replaced, right?  So we can't do anything
after that since when the users exit out of the telnet based app they get
logged out of their session.  Does that make sense?  The more I think about
it, the more I think that the only way to do this is to not exec the binary
and do the necessary cleanup tasks after the application exits.  We are
loathe to do this simply because of the sheer number of processes running
(it takes a full minute for ps to even begin to dump out the process table).

Greg


On 12/20/06 4:44 PM, "Carl T. Miller" <millerc at cantonpl.org> wrote:

> Wojtak, Greg wrote:
>> Here¹s a problem we¹ve been banging our heads against for the past week.
>> We
>> have an application running where users telnet into the server, and their
>> profile sets up their environment appropriately and then ushers them into
>> the application.  Is there any way to execute a script as they are
>> exiting?
>> 
>> If someone comes up with a good solution, I can offer a coveted no-prize...
>> :-/
> 
> <train of thought>Ooh.  Ooohh.  The coveted no-prize.  I want
> that!<train derailed>
> 
> I'm not really clear on what you want to do.  It sounds like
> users telnet to a server, get environment variables set in
> their current (only) shell, then exec a new shell to run the
> app.  Is the app telnet based?  When you mention executing a
> script as they exit, do you mean from the app or from the
> original shell?
> 
> c
> 
> 
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug




More information about the mdlug mailing list