Convert attachement bin to txt
Posted: Wed Jan 15, 2014 9:48 am
Long back I started a thread on same topic and I got below solution....
After adding sed , I got content in email instead of attachment.
Yesterday again I got attachment for the following response. could you please help me to fix it?
Code: Select all
"sed" program remove those line-endings before sendig it off to /bin/mail i.e | sed 's/\r//Yesterday again I got attachment for the following response. could you please help me to fix it?
Code: Select all
***** Nagios *****
Notification Type: PROBLEM
Service: Cart
Host: xml.domain.com
Address: xml.domain.com
State: WARNING
Date/Time: Wed Jan 15 04:02:01 EST 2014
Additional Info:
POST http://xml.domain.com/cart?id=ssdsd HTTP/1.1User-Agent: check_http/v1.5-3-gdc3f (nagios-plugins 1.5)
Connection: close
Host: xml.domain.com
WCToken:asdasdasdasd
Content-Type: application/json
Content-Length: 61
{order: [{ part_0:123456, quantity_0: 1 }]}
http://xml.domain.com:80http://xml.domain.com/cart?id=ssdsd is 350 characters
STATUS: HTTP/1.1 400 Bad Request
**** HEADER ****
Content-Language: en-US
Content-Type: application/json
Date: Wed, 15 Jan 2014 09:03:58 GMT
Content-Length: 188
Connection: Close
**** CONTENT ****
{
errors: [
{
errorCode: 1012,
errorKey: sdasda,
errorMessage: Activitytokená0749249\hasbeenterminated.,
errorParameters: dsadasd
}
]
}
HTTP WARNING: HTTP/1.1 400 Bad Request - 350 bytes in 0.117 second response time