I'm capturing video from security ip cameras. The error logs and video for each delay any return from each command so I have added the & to continue to the next for loop. Running the script from the command line, it works but will not exit to a clean prompt. Thanks for any help, I'm streching the noob bubble =)
capcam ()
{
rm ${LOGS}/*CAM.log
for X in ${ADDIES} ;do
exec ${CAPTOOL} ${CAP_OPT1} http://${X}/mjpg/video.mjpg ${CAP_OPT2} ${STORE}/${X}.$ROT.avi > ${LOGS}/${X}CAM.log &
done
}
capcam ()
{
rm ${LOGS}/*CAM.log
for X in ${ADDIES} ;do
exec ${CAPTOOL} ${CAP_OPT1} http://${X}/mjpg/video.mjpg ${CAP_OPT2} ${STORE}/${X}.$ROT.avi > ${LOGS}/${X}CAM.log &
done
}