Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

scrypt info

(http://stream-recorder.com/forum/showthread.php?t=16980)

kamill2010 03-02-2014 07:31 AM

scrypt info


 
Hi I have a script who is to restore the channels which disables August but is not it functioning or maybe someone speawdzic why it does not work

Quote:

#!/bin/bash
function detectProcess() {
local process_list=`ps w | grep '$1.*xxx' | grep -v grep > /dev/null`;
if [ ${#process_list} == 0 ]; then
return 0;
else
return 1;
fi
}
while true; do
if $(detectProcess 'rtmpdump'); then
# Logowanie
echo "[`date +'%D %H:%M'`]::Crash transmisji - restart!" >> /xxx.log;

screen -S xxx php WeebTV.php
fi
sleep 35; #Usypia na 20s
done


All times are GMT -6. The time now is 12:48 PM.