Rajesh Fowkar forced the electrons to say:
> key is pressed during this period. Many users just load the
> package but don't do any work on that node, is such cases
> after 30 minutes the user should be automatically logged
> out.
Hmm... If you have access to the source code, then you can hack it to
suit your needs. In any case, you can try sending a wishlist item to the
package's vendor. :-) I cannot see any other solution to your problem.
> This works with TMOUT only if the user is at the shell
> prompt.
That's because TMOUT is used only by bash. Other program's don't
generally look in the environment for TMOUT or honour it if found. In
fact, your users could switch to tcsh and ignore your TMOUT settings, or
put unset TMOUT in their own bash profiles. :-)
> But here we are not giving access to shell, from
> their bashrc the package is loaded and on exiting the
> package they get the login prompt back hence our problem.
Now why do you want to do that? Give them access to the shell, let them
also enjoy Linux and its wonderful CLI - this might even prompt them to
try Linux for their home PC if and when they buy one. :-)
Anyway, what you are doing may not be the right way to do it. I'd say
make their shell the program you want to run - put the path to the
program in /etc/passwd in the shell field (don't forget to update
/etc/shells).
Binand
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr