tobitobsta wrote: 
> 2. is it possible to write everything comming from my script to a
> log-file? Where is all the logging done? My
> /var/log/squeezboxserver/srvrpowerctrl.log is still empty.

You could log on your own to syslog. I use this in shell scripts:
Code:
--------------------
    #!/bin/sh
  …
  ME="this_script_name"
  LOGGER="/usr/bin/logger"
  LOGGEROPTS="-t $ME -i --"
  …
  (( $SOME_CONDITION > 0 )) && $LOGGER $LOGGEROPTS "Logging some condition 
value: $SOME_CONDITION"
--------------------

Have a look at the logger command ("man logger")


------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
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