> On 28 Oct 2014, at 23:08 , Cyril Niklaus <cyril.nikl...@gmail.com> 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
MacOSX-talk@omnigroup.com
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to