oops read a bit too fast: that'll work as a logIN hook, but I'm not sure of it as a logout hook. I'm too jet-lagged at the moment to think straight, to be honest, I'll just add that login/out hook are deprecated since a long time. Maybe they finally did something to make the system ignore them?
On Tue, Oct 28, 2014 at 10:45 PM, LuKreme <[email protected]> wrote: > > > On 28 Oct 2014, at 23:08 , Cyril Niklaus <[email protected]> > wrote: > > > > stat /dev/console | awk '{print $5}’ > > Does that work in a logout hook? As I recall, the logout hook runs as root > and it runs at the logout event, so there is no current users. > > This is why, pre Yosemite, the logout hook passed the user to the script > in $1. > > But I’ll try it. > > -- > Well, we know where we're goin' > But we don't know where we've been > And we know what we're knowin' > But we can't say what we've seen > >
_______________________________________________ MacOSX-talk mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-talk
