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 .
command linemacosscript
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 .
Best Answer
From the man page of
skill
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: