In mod normal un script de genu asta te-ar ajuta tare mult :

#!/bin/sh

process=`ps auxwww | grep CCcam.x86 | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "`date`. Couldn't find CCcam.x86 running. Restarting server-binary" >> /tmp/cccam.check
/root/bin/CCcam.x86 -d |awk '{if ($3=="illegal" || $3=="wrong") system ("ip route add prohibit " $7);else print $0}'>> /tmp/CCcam.log &
else
echo "`date`. CCcam.x86 is still OK! " >> /tmp/cccam.check
fi


Insa din propria experienta nu exista un script corect pentru a tine CCcam ok ( apar multe erori .. si uneori pare a fi ok dar nu functioneaza), din acest motiv am trecut pe oscam.