Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to terminate a login process in a shell script?

0 views
Skip to first unread message

henry

unread,
Jan 5, 1999, 3:00:00 AM1/5/99
to
Hello,

We tried to terminate a login process from a shell script.
The exit command only quit from the script, not directly logout from
current
login session. Is there any way to accomplish this function?

Thank you very much for your help.

Henry

J. Benz

unread,
Jan 6, 1999, 3:00:00 AM1/6/99
to

Shaun Lipscombe wrote:

> try using . under bash, or source to run the script in the current
> shell. Otherwise your script will run in a sub-shell.


>
> henry wrote:
> >
> > Hello,
> >
> > We tried to terminate a login process from a shell script.
> > The exit command only quit from the script, not directly logout from
> > current
> > login session. Is there any way to accomplish this function?

Or you could look into 'kill'.


Glenn West

unread,
Jan 6, 1999, 3:00:00 AM1/6/99
to
On Tue, 05 Jan 1999 15:33:14 -0500, henry <lscs...@law.upenn.edu>
wrote:

>Hello,
>
>We tried to terminate a login process from a shell script.
>The exit command only quit from the script, not directly logout from
>current
>login session. Is there any way to accomplish this function?

Don't execute the shell script in a subshell. That is use ".
exit_script" for Bourne-like shells and "source exit_script" for
C-shell.

0 new messages