Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Fwd: vdrconvert and add.sh



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@bfs:~> size=1999999999999999
errror@bfs:~> current=4096
errror@bfs:~> echo "$size + $current" | bc
2000000000004095
errror@bfs:~> all=`echo "$size + $current" | bc`
errror@bfs:~> echo $all
2000000000004095

See the man-page for further details. bc is quiet complex!

CU/all
-- 
Patrick Cernko | mailto:errror@errror.de | http://www.errror.de
Quote of the Week: "/vmlinuz does not exist.
                    Installing from scratch, eh?"
                   (Debian Kernel Installation)

Attachment: pgp00000.pgp
Description: PGP signature


Home | Main Index | Thread Index