Skip to main content
8 events
when toggle format what by license comment
Dec 23, 2013 at 19:39 comment added DrorCohen I managed to solve my problem - see my answer. thanks for your help.
Dec 17, 2013 at 13:04 comment added DrorCohen OK. managed to get a copy of the stat man for mac... The problem I face now is that /dev/console in Ubuntu belongs to root...
Dec 16, 2013 at 14:20 comment added DrorCohen can you please explain what $(stat -f %u /dev/console) == $UID is supposed to do? so I can convert it to ubuntu? thanks
Dec 15, 2013 at 19:58 comment added user5024 @DrorCohen I don't think it will, due to the use of stat -f %u /dev/console. It probably should be fairly trivial to fix for Ubuntu (assuming it doesn't work). If you can't get it working though, please create a new question.
Dec 15, 2013 at 15:50 comment added DrorCohen Any changes I need to do here to make this work in Ubuntu?
Jan 6, 2012 at 14:04 vote accept CommunityBot
Jan 3, 2012 at 23:52 comment added user5024 For info, the purpose of using sudo, is that kill -9 $pid alone isn't always enough to kill the loginwindow process. I also considered using kill -9 -1 which would normally kill all processes belonging to the user, but according to the man pages, when you run this with sudo, it instead kills all processes on the system.
Jan 3, 2012 at 23:29 history answered user5024 CC BY-SA 3.0