From: Alan J. Pippin Date: Tue, 19 May 2009 23:02:26 +0000 (-0600) Subject: Added dvdname to 2 pass logfile to enable multiple instances of rip_dvd to run concur... X-Git-Tag: 1_0~32 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/%24link?a=commitdiff_plain;h=edce80128c3ac2e2fa9ec47582eefaea654e4f89;p=rip_dvd%2F.git Added dvdname to 2 pass logfile to enable multiple instances of rip_dvd to run concurrently Added safedvdname declaration that removes special characters from the dvdname for 2 pass logfile name --- diff --git a/rip_dvd b/rip_dvd index a97a343..bd4442a 100755 --- a/rip_dvd +++ b/rip_dvd @@ -239,9 +239,12 @@ if [ -z "$vobfile" ]; then vobfile="$dest/$dvdname.VOB" fi +# make a "safe" dvdname (remove special characters) +safedvdname=`basename "$dvdname" | sed 's/[ !&*\\$?]/_/g'` + # set up some variables to hold various logfiles logfile="$logdir/$dvdname.log" -passlogfile="$tmpdir/divx2pass.log" +passlogfile="$tmpdir/$safedvdname.log" ddrescuelog=`tempfile` dvdauthorlog=`tempfile` encodelog=`tempfile`