Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a login/logout tracking log file for all users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a login/logout tracking log file for all users
Authored by: regulus on Aug 18, '06 09:52:44AM

By having these scripts run at login and logout, I've found other uses for them too. I can add other script code to my scripts to have other things performed on my mac too.

For example, I've disabled the startup chime when my mac reboots. I added the code /usr/bin/osascript -e 'set volume 4' to the loginscript and /usr/bin/osascript -e 'set volume 0' to the logoutscript. This way my volume gets set to zero when I logout and thus the startup chime is muted, and the volume gets set to a consistent level (i.e. 4) when I boot up.



[ Reply to This | # ]
Create a login/logout tracking log file for all users
Authored by: xfile087 on Aug 22, '06 06:15:37PM

After seeing what you added, I decided to use "/usr/sbin/diskutil unmount /dev/disk0s3" in mine to unmount my Windows partition on login :D



[ Reply to This | # ]
Create a login/logout tracking log file for all users
Authored by: regulus on Aug 22, '06 09:57:55PM

Yes, the login/logout hooks are very powerful. There's much that can be done that you can't do with the "login items" in the accounts preference pane.



[ Reply to This | # ]