Commit cf9aff08 authored by theron's avatar theron
Browse files

Correction pb du "^M" en fin de chaine du x-requestId

parent 0f17b2ba
......@@ -12,9 +12,9 @@
path_sip="$1"
# url des API Vitam:
#url="https://10.6.10.34:"
url="https://10.6.10.34:"
#url="https://prep-vit-acc-1-1.cines.fr:"
url="https://vitam.cines.fr:"
# url="https://vitam.cines.fr:"
# ports des API
ing_ext_port="8443";
......@@ -22,8 +22,8 @@
#Fichier pem du certificat:
# certificat=`cat ./cert/cines_certificat.pem`
certificat=`cat ./cert/cines_certificat.prod.pem`
certificat=`cat ./cert/cines_certificat.pem`
# certificat=`cat ./cert/cines_certificat.prod.pem`
# certificat=`cat uga_certificat.pem`
# *************** VARIABLES *********************
......@@ -166,7 +166,8 @@ report="POST";
fi
# crPost=`grep Accepted $path_sip-$sip-POST.out | awk {'print $1"-"$2"-"$3'}`
reqId=`grep X-Request-Id $path_sip/out/$sip-POST.out | awk {'print $2'}`
echo "`date +%Y/%m/%d-%H:%M:%S` $sip $reqId $crPost" >> $path_sip/out/$report.out
reqId=`echo "${reqId%?}"` # suppression du dernier car ^M de la chaine $reqId
echo " `date +%Y/%m/%d-%H:%M:%S` $sip $reqId $crPost" >> $path_sip/out/$report.out
rm $path_sip/out/$sip-POST.out # Suppression du fichier resultat du post pour le sip
let nbrPost++;
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment