Is there an alternative for the
skill -KILL -u $user command on the Mac OSx. The basic requirement is I want to log out my current logged in user at end of shell script
This program logs out Linux log in user .
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
From the man page of
These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead.
so you could use
pkill -KILL -u uid.
But why kill every process with the KILL signal? You can just call
exit after your script:
script.sh ; exit