Hi guys I need some guidance
I have setup a crontab To check every minute if a live transcoding channel has stopped. The script gets pulled via crontab and I can see the instance starting up, but then after couple of seconds it gets shutdown, If I run the script manually it starts both ffserver and ffmpeg input couple of seconds later and it run for hours/days with no problem.. If I close the terminal where I have executed the script and let the crontab execute it, it start and shutdown couple of seconds after I have correct permissions on the script files and config files.. Here is the ouput of the script Can someone help me on this as I want to make a monitoring script to check all the live transmission transcodings being used And if it crashes or stops I want the crontab to init ffserver and ffmpeg shortly after again Here is the output of the script, can someone please tell me what I am doing wrong? I use the same similar script to my middlware application to check the live multicast transmission and tunners setup from the PCI devices.. ########## # check channel transcoding # ffserver channel1.sh ########## #!/bin/bash if ps x |grep -v grep | grep channel1.cfg ; then echo "FFserver runing " else echo "FFserver down" ffserver -d -f channel1.cfg fi sleep 10 if ps x |grep -v grep | grep channel1.ffm ; then echo "Transcoder running " else echo "transcoder down" ffmpeg -i udp://@239.106.3.0:4002 http://170.80.123.234:8890/channel1.ffm fi Any hints or tips on how to setup a correct check status script will be appreciated. _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
