Marcel1958
Technical User
I have some problems with the let TOTAAL=$TOTAAL+$freemb command in mine script:
The messages on the console are:
MEM T0156
63,0
0
/usr/bin/leesnmon[66]: TOTAAL=0+63,0: 0403-057 Syntax error
Hereby a part of the script.
BESTAND="./prd01_030417_0915.nmon.csv"
while read -r type teller realfree virtfree freemb virtfreemb rotzooi
do
if [ "$type" = "MEM" ]
then
print "$type $teller"
let AANTAL=$AANTAL+1
print $freemb
print $TOTAAL
let TOTAAL=$TOTAAL+$freemb
fi
done < $BESTAND
The messages on the console are:
MEM T0156
63,0
0
/usr/bin/leesnmon[66]: TOTAAL=0+63,0: 0403-057 Syntax error
Hereby a part of the script.
BESTAND="./prd01_030417_0915.nmon.csv"
while read -r type teller realfree virtfree freemb virtfreemb rotzooi
do
if [ "$type" = "MEM" ]
then
print "$type $teller"
let AANTAL=$AANTAL+1
print $freemb
print $TOTAAL
let TOTAAL=$TOTAAL+$freemb
fi
done < $BESTAND