Loop ends unexpectedly after one run!
Hey!
I'm trying to make my life a whole lot easier by making a bash-script, who reads a directory and greps the files that ends on mpg and mpeg, defined in a pattern.temp written by the script. The script was designed for converting musicvideos into compliant DVD-files. When reading (a lot of) files, the script runs smoothly the first time, but when trying to run the commands on the second file, ffmpeg somehow enforces the script to quit. I've tried to comment out the ffmpeg line, and then the script runs just fine (even though it is useless without the ffmpeg command). Could it be an issue with the way ffmpeg interprets the syntax's? Hope some of you can help me, because it is starting to drive me crazy :P Best regards trex_dk Code:
#!/bin/sh |
Do you get any error msgs ?
You could also try using set -xv at the top of the prog which will show you in detail what's happening. |
do as chrism says
and try this at the top also: Code:
set +o errexit |
All times are GMT -5. The time now is 06:30 PM. |