Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-02-2014, 08:31 AM
kamill2010 kamill2010 is offline
Junior Member
 
Join Date: Jan 2014
Posts: 7
kamill2010 is on a distinguished road
Exclamation

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
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:46 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons