re,

Le script fonctionne bien mais j'ai toujours cette erreur en sortie.

Grave !!! Tu exécutes ton script depuis un programme ? Sinon, je ne vois
vraimenet pas comment tu en arrives là...
J'ai ouvert mon terminal et j'exécute mon script en
bertrand% sh nomduscript.sh

cd $IMGDIR
IMG=$(ls *.jpg 2>/dev/null)
if [ -n "${IMG}" ]
then
for IMG in "$(ls | grep '\.[Jj][Pp][Gg]$')"
do
echo >>$LOGFILE "$(date +'%d.%m.%Y %H:%M:%S') Transferring $IMG to $DESTHOST"
if curl -u $USERPASS -T $IMG $DESTURL
then
echo >>$LOGFILE " Transfer OK"
mv -f $IMG $IMGARC/$IMG
else
echo >>$LOGFILE " Transfer failed"
fi
done
fi

Le message suivant apparait:
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 15584 0 0 100 15584 0 289k 0:00:00 0:00:00 0:00:00 13536
*** malloc[856]: Deallocation of a pointer not malloced: 0x70780; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug

Je ne vois pas ce qu'il faut corriger.

Merci d'avance.

Bertrand

--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se désabonner aussi.

Répondre à