Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logoff command

Status
Not open for further replies.
Dec 16, 2002
101
GB
Hi
I'm writing a program that needs to be able to log a user off. Is there a command line for doing this?
 
I don't have an exact answer for you, but maybe this will assist you in what you want to do:

In my experience with HP Unix I was able to log a user out by killing the process for the login session. I'm not exactly sure how Apple handles the login session, but it should be similar. You should be able to use command line tools like ps (show processes), awk, and grep to search for the user and kill the login session.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top