[mdlug] logout script?
Aaron Kulkis
akulkis3 at hotpop.com
Fri Dec 29 09:40:29 EST 2006
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?
C shell (/bin/csh) profides for ~/.logout.
I think bash also supports a logout script ( .bash.logout or something like that)
> The biggest kicker is that the user's login shell is replaced with the
> application as we exec it from their profiles. This is to save process
> space, otherwise we would run out of process slots. Basically, the only
> thing running is a telnetd for each user plus the application process. Does
> anyone have any ideas? I presume to accomplish something like this, I would
> have to use some functionality either of telnetd, login, or getty maybe. If
> someone comes up with a good solution, I can offer a coveted no-prize... :-/
Well, the way Linux and Unix work, only ONE copy of the shell executable
is kept in memory....2nd, 3rd, etc processes all reference the same
pages of memory.... so I don't think the memory issue is as big as you
might think it is.
And memory is cheap enough that memory is an issue, buy a bit more,
and solve the headache.
>
> Greg
More information about the mdlug
mailing list