erlug
[Top] [All Lists]

[Erlug] bash again

To: erlug@xxxxxxxxxxxxxx
Subject: [Erlug] bash again
From: Federico Schlatter <guerfosolo@xxxxxxxxxxx>
Date: Sat, 12 Feb 2005 22:57:35 +0100
Ciao,

Non riesco a venir a capo di questa sezione di uno scriptino che sto
fando, continua a
darmi errori (ho davanti agli occhi man bash e abs, forse sono solo
ottuso).

L'errore e' alla riga [*]: e da  [: : integer expression expected
se levo le " mi da 'unary expected...


######  Infinito webmail check

MYHOME=/home/istrice
MYBIN=$MYHOME/bin
DAEMONLIB=/usr/bin/freepopsd
DAEMONINF=$MYHOME/src/html2pop3/html2pop3.sh
LIBOPTIONS=" -l  $MYHOME/liberopopsd.log -p 2000 "
INFOPTIONS=" -vv -l $MYHOME/infinitopop2.log"
MYLIBCONFFILE=.fetchmailrc.libero
MYINFCONFFILE=.fetchmailrc.infinito
#VERBOSE=" -v "

## 
        function infinito {

 echo " Scarico la posta da INFINITO web Mail "; 

# run the daemon 
         $DAEMONINF start;
sleep 1;
        if [ -f $MYHOME/$MYINFCONFFILE ] ; then

                # quit fetchmail, run one session (verbose, now)
                # with this peculiar configuration

                /usr/bin/fetchmail -q
                /usr/bin/fetchmail -f $MYHOME/$MYINFCONFFILE $VERBOSE
CONTROLLOI=$?
                /usr/bin/fetchmail -d 300
        fi

# stop the daemon
         $DAEMONINF stop;

}

## a volte errore con connessione localhost quindi
        
        until [ "$CONTROLLOI" -eq "0" ]; do infinito;          # [*]
                
done
                echo " La posta di Infinito web Mail e' stata scaricata"

##########

saluti

-- 
 
    '' ·            Starving wolves at the gates of civilization.
 '       '         linux User 231984.
:   :`'   :
             
`    ` ' ` 
 `       
   ` - SID 

<Prev in Thread] Current Thread [Next in Thread>