Find out your Perl PID, find out the  user who's running it, and kill their
session using `kill`?

+Pete

"Bob Showalter" <[EMAIL PROTECTED]> wrote in message
2E4528861499D41199D200A0C9B15BC031B508@FRISTX">news:2E4528861499D41199D200A0C9B15BC031B508@FRISTX...
> > -----Original Message-----
> > From: Matthew Blacklow [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 29, 2001 7:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: logging out a user
> >
> >
> > Hi Guys,
> >
> > Got a bit of a conundrum here. I have a perl script that does various
> > things for any user who runs it. What I need it to do is, at
> > the end of the
> > script, not only exit the script, but actually log that user
> > out of their
> > shell login on the box completely.
> >
> > Sounds like a weird thing to do, but its quite an acceptable
> > thing for what
> > this script is doing. Im writing and executing this script
> > under FreeBSD
> > 4.4-RELEASE and any help would be appreciated.
>
> Do they need to run your script from the shell at all? Perhaps you
> could simply set up their account so your script is the startup
> program. Then when they log in, they go straight into your script.
> When your script ends, they are logged out.
>
> Short of doing that, I don't see how you can force them to log out.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to