1 Dec 2003 09:50
Re: Fwd: vdrconvert and add.sh
Patrick Cernko <errror <at> ps.uni-sb.de>
2003-12-01 08:50:16 GMT
2003-12-01 08:50:16 GMT
Also sprach Joachim König zu "01.12.2003 09:31" Anno Domini: > HI, > > I have a problem with the add.sh from vdrconvert. The shell variable in bash > is only a long integer and now I have overruns when the script tries fo > calculate the shrinkfaktor for my DVDs. The total size of my movie is about > 5.2 > GB and this overflows the shell variable. My question now is what shell > should > I use with vdrconvert. The bash does not work for me. > > This happens with all versions of vdrconvert. > If you are familiar with programming shell scripts, you can modify all computations to use "bc" instead of the shell build-ins. Just an example, how you can use it: errror <at> bfs:~> size=1999999999999999 errror <at> bfs:~> current=4096 errror <at> bfs:~> echo "$size + $current" | bc 2000000000004095 errror <at> bfs:~> all=`echo "$size + $current" | bc` errror <at> bfs:~> echo $all 2000000000004095 See the man-page for further details. bc is quiet complex! CU/all -- -- Patrick Cernko | mailto:errror <at> errror.de | http://www.errror.de Quote of the Week: "/vmlinuz does not exist. Installing from scratch, eh?" (Debian Kernel Installation)
RSS Feed