osx - Script to logout user and perform background task -
I am trying to find a way when a user logs in to the system automatically to log off and A background script does
Specifically, I'll need to delete the local user account but keep the home folder in place. It will need to be done only once, but I am not sure about the best approach. The purpose of logging is to use the account which is to be used once, however, as long as they are logged into the account, Can not remove.
All systems are Mac OS X 10.5.8 or 10.6.
You can get it by using the .bash_logout script. From Bash's manual page:
When the login shell extends, it reads and executes the file with ~ / .bash_logout, if it exists.
Comments
Post a Comment