Blondie wrote: 
> 
> I have now seen:
> If a user is logged in, the return value is 256.
> If no user is logged in, the return value is 0.
> 
> So the script is working. Thank you for your Help!
> I'm seeing the same behavior as you.  I would have expected the script
to return 1 or 2, but not 256.  I tried to tweak the script by adding
epoch1970's "nmberfyier" code, i.e.

Code:
--------------------
    #!/bin/sh
  USERCOUNT=`who | wc -l`
  USERCOUNT=`expr $USERCOUNT \* 1`
  
  exit $USERCOUNT
  
--------------------

..but that didn't change the behavior.  So, I'm not sure what's going on
here..but, as you say, it's working.


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to