ssh returns fqdn betwee escape codes
I do this in a script:
IK=`ssh -nq user@host sudo su - wasuser -c "date`
echo $IK will return:
Sat Aug 6 22:28:51 CEST 2011
echo $IK>ik.txt
and then
vi ik.txt
will show in vi:
^[]0;hostname.domain^GSat Aug 6 22:28:51 CEST 2011
How can I prevent sending the hostname in the output?
|