I am trying to get echo to work with ssh and am having no luck in getting it to do what I want. I want to be able to ssh into a box and echo text to a file that doesn't yet exist.
ssh isn't an issue because when I substitute echo with "ls", it returns a listing. But when using echo, a file is never created. Here's what I have....
ssh server1 echo text >> /root/newfile
Why does echo not like this and what is the work arround to this?