gharris999;648030 Wrote: 
> 
> check-inhibit.sh:
> > 
Code:
--------------------
  >   > 
  > #!/bin/bash
  > LOGFILE='/var/log/squeezeboxserver/inhibit-check.log'
  > 
  > for i in {0..10000..1}
  > do
  > INHIBIT=`dbus-send --print-reply --dest=org.gnome.SessionManager 
/org/gnome/SessionManager org.gnome.SessionManager.IsInhibited uint32:-1`
  > DATESTR=`date`
  > if [[ "$INHIBIT" =~ "true" ]]
  > then
  > echo "At $DATESTR: Inhibited.." >>$LOGFILE
  > else
  > echo "At $DATESTR: Not inhibited.." >>$LOGFILE
  > fi
  > 
  > sleep 1
  > done
  > sleep 30
  > 
--------------------
> > 
> 
Where should I put this script?


-- 
nilssohn

Asus EeeBox, Ubuntu, SBS 7.5.5 - SB Classic, 2 x SB Boom, SB Radio -
iPhone, iPad, iPeng
------------------------------------------------------------------------
nilssohn's Profile: http://forums.slimdevices.com/member.php?userid=23253
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