This is the script i buildfor i in `cat cain.txt`douuid=$(curl   -X POST -H ACCEPT-LANGUAGE:en   -H Content-Type:application/json   -H Accept: application/json -d  '{username:TheUserName}'  H) > final.txtfuid=$(echo $uuid | sed -nE 's/.*serviceUuid:(.*),user.*/\1/p' >>  final.txt)eval $fuidecho $fuidservice_uuid=$(cat final.txt)password=$(sed -n 1p cain.txt)echo $service_uuidecho $passwordlogin=$(curl -X POST -H ACCEPT-LANGUAGE:en  -H Content-Type: application/json;charset=utf-8  -H Accept-Encoding:gzip,deflate   -H Accept: application/json  -H Connection: keep-alive -d  '{serviceUuid:${service_uuid},password:${password}}'  HereTheUrl)echo $loginif [ $login = STATUS_OK ]thenecho Password: $passwordbreakelseecho Trying: $passwordfidoneWhen i run it the server response is:{status:{code:NOT_AUTHENTICATED,message:HereTheUrl},body:{}}How to fix that?(the response for password error need to be ERROR not NOT_AUTHENTICATED)
Server response login error!
shell script;shell;programming