On Tue, 11 Sep 2007 00:07:52 -0700, Steve Langasek <[EMAIL PROTECTED]> said:
> So the current thought is to use > who | awk '{print $2}'|grep -q '^:[0-9]' > to detect whether there are users logged in via X before restarting > the display managers. > Look reasonable? Umm. I am in X, right now. __> who | awk '{print $2}'|grep -q '^:[0-9]' __> Do I need to be root? __> sudo who | awk '{print $2}'|grep -q '^:[0-9]' __> So, this does not seem to work in all cases. manoj -- Everyone is entitled to my opinion. Manoj Srivastava <[EMAIL PROTECTED]> <http://www.debian.org/~srivasta/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]