I have a local script, and I need to start a service on a remote server.
Normally, if I was logged in on the remote server, I would use for example:
service rsyslog restart
and I would see following output:
But when I connect non-interactively from my script, ie
ssh myserver.com "service rsyslog restart"
I don't get the colorized [OK] output:
And when I add -t option to ssh, I do get the colorized output, but then also I get extra verbose info Connection to server closed. which i don't want because it interferes with my script:
How can I get colorized output without the extra verbose info?


