Hi Guys,
Can any body tell me what is the command to logout user from system?
I know the "reboot" and "shutdown" command but I don't know how to logout the user from system.
Previously I was using Carbon API "SendAppleEventToSystemProcess" to restart,shutdown and logout in my Cocoa application. But now I have mad one daemon now this API is not working in my daemon. So I m looking for system commands to achieve these things.
Thanks in advance.
Sunil.
Can any body tell me what is the command to logout user from system?
I know the "reboot" and "shutdown" command but I don't know how to logout the user from system.
Previously I was using Carbon API "SendAppleEventToSystemProcess" to restart,shutdown and logout in my Cocoa application. But now I have mad one daemon now this API is not working in my daemon. So I m looking for system commands to achieve these things.
Thanks in advance.
Sunil.