Command echo
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.... Quote:
Chris |
I'd be interested to know what actually happens, do you get an error msg? In any case, I'd recommend using single quotes (') around the entire cmd http://bashcurescancer.com/run_remot..._with_ssh.html
|
Quote:
Try Code:
ssh server1 "echo text >> /root/newfile" Cheers, Tink |
Thanks Tink. the quotes did the trick.
|
All times are GMT -5. The time now is 11:39 AM. |