#!/bin/bash COMMAND="curl --data \"method=A19&application=healthy&patient_id=$1\" \"http://$2\"" XML=$(ssh x3mirth "$COMMAND") echo $XML | xmllint --format -