Thanks, but I don't understand perl. I struggle with bash scripts as it
it. But as you say "Squeezelite does server discovery for you." So my
simple idea seems to work:

e.g.

Code:
--------------------
    
  if ( program_running $PROGNAME ) ; then
  if zenity --question --text="Stop Squeezelite?"; then
  killall squeezelite
  fi 
  else
  if [  -f $LOGFILE  ]; then 
        rm -f  $LOGFILE 
  fi            
  if zenity --question --text="Start Squeezelite?"; then
        squeezelite -d slimproto=info -f  $LOGFILE -z;
        sleep 5 
        if !  (grep -q "connected" $LOGFILE); then
                killall squeezelite
           zenity --error  --text="Media Server Not Found.  Aborting."; exit 1;
        fi 
  fi
  fi
--------------------


------------------------------------------------------------------------
Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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

Reply via email to