Ciao,

ogni tanto ( diciamo 1 volta su 1000... ) mi accade una cosa strana con un programmino:

/usr/local/bin/pnjpeg.sh: line 569: [: 293876
548137: integer expression expected

La linea in questione è quella del while:

checkfilesize ()
{
    if [ "$OUTPUTFILEFORMAT" == "jpg" ]; then
        if [ "$KBLIMIT" != "" ]; then
            OVERWRITE="true"
            MAXKBSIZE=$(( $KBLIMIT * 1024 ))
KBSIZE=$(( $KBLIMIT * 1025 )) # the actual size, greater than the min at the beginning

            while [ "$KBSIZE" -ge "$MAXKBSIZE" ] ;
            do
                savefile

                checksize
            done

        fi
    fi
}

da cosa può essere dato?

Giusto per completezza, sto usando bash di etch:

GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

Grazie in anticipo.

Ciao.
--
Giulio Canevari


--
Per REVOCARE l'iscrizione alla lista, inviare un email a [EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Rispondere a