Logout via perl script

3 replies
Hi . I have a perl application (one perl script calls another which calls another, etc...). In one of the low level scripts, it's possible that it must "logout" the user. That is, basically, exit the shell that this application is running. Does Any one have ideas on how to accomplish this?
#logout #perl #script
  • Profile picture of the author johnnyN
    I assume you have logged in.

    the login script has a mechanism (usually cookies) that keeps the user logged in. To logout normally you either trash the cookie, or trash the session on the server.

    so I can't answer with any more detail than that without more info.
    {{ DiscussionBoard.errors[4574095].message }}
  • Profile picture of the author lordspace
    Johnny, she/he means logging out of the ssh shell.

    hm, you might be able to this by using

    `logout`;

    or somehow kill the logged in user

    `skill -KILL -u YOUR_USERNAME`;
    Signature

    Are you using WordPress? Have you tried qSandbox yet?

    {{ DiscussionBoard.errors[4696115].message }}
  • Profile picture of the author hotelscyprus
    kill 'STOP', getppid; /*try this to kill the login shell*/
    {{ DiscussionBoard.errors[4696602].message }}

Trending Topics