hi ferdicharms,

Here's an idea that might work?

This script submits a LMS command via the function pcp_lms_start_command
with a sleep command included.

This script should be run from a User Command ie.
/home/tc/delaystart.sh


Code:
--------------------
    #!/bin/sh
  
  
#========================================================================================
  # Delayed start
  
#----------------------------------------------------------------------------------------
  
  . /var/www/cgi-bin/pcp-functions
  . /var/www/cgi-bin/pcp-lms-functions
  
  DELAY=2
  LMSCOMMAND="playlist play 
https://st01.sslstream.dlf.de/dlf/01/high/aac/stream.aac";
  DELAYSTARTLOG="pcp_delay_start_lms.log"
  
  echo "Delayed start: $DELAY"
  sleep $DELAY
  
  echo "LMS command: $LMSCOMMAND" > ${LOGDIR}/${DELAYSTARTLOG}
  pcp_lms_start_command "$LMSCOMMAND" >> ${LOGDIR}/${DELAYSTARTLOG}
  
--------------------


You could, if you wanted, remove the delay from the script and add the
delay to the front of the User Command: ie sleep 10;
/home/tc/delaystart.sh

regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=116899

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to