| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Nov 18, 2009
Posts: 10
![]() |
Hello,
Lion offers a fast user switching command if you go to users > login items > enable fast user switching > full name Essentially you can lock your computer by clicking on your name in the toolbar and locking clicking "login screen" I was wondering if it was possible to run a script to kill a certain process (just 1) when you went to the login screen. I found this file but I'm not sure its the right one. /Library/Preferences/com.apple.loginwindow.plist.lockfile If I write a simple shell script like this to it, can I kill the file? > sudo defaults write /Library/Preferences/com.apple.loginwindow.plist.lockfile ps -ax | grep Application | awk '{system ( "kill "$1 )}' Perhaps I'm not writing a shell script the right way to a com.apple file? I also found a LogoutHook ran when the computers logouts on sudo defaults write com.apple.loginwindow Logouthook /usr/bin/script but is this initiated at switch user time? thanks for your help, J |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Shortcut or simple script help needed | martinielsen | OS X - Operating System | 6 | 07-24-2012 07:18 PM |
| Script for adding users | i_eat_short_ppl | OS X - Operating System | 0 | 06-04-2009 06:01 PM |
| sharing photos and music among users on the same computer | jsdean01 | Switcher Hangout | 4 | 01-27-2008 03:49 PM |
| Just How Secure Are the 'Reset Safari' & 'Erase Free Space' Facility? | scoot | OS X - Operating System | 3 | 05-30-2007 05:28 PM |
| Intel Mac users with Windows, Where did you put your windows key sticker? | mynameis | Schweb's Lounge | 10 | 05-20-2006 08:06 PM |
All times are GMT -4. The time now is 12:20 AM.
Powered by vBulletin