Nevermind I figured it out.  I had to put the whole commadline in single
quotes like this.

ssh username@sshserver 'echo -e "this is a test\ntwo=2" > /tmp/sshtest;
cat /tmp/sshtest'

Robert Canary wrote:
> 
> I am trying to pass the following on a commandline via ssh
> echo -e "this is a test\ntwo=2" > /tmp/sshtest; cat /tmp/sshtest
> 
> on the console commandline I get.
> this a test
> two=2
> 
> However, if pass it through the commadline on a ssh I get
> this is a testtwo=2
> 
> I have tried double slashes and that will not work iether.  The
> commandline works on both machines fine while at the console, but I
> cannot get the <NL><RT> on when going through a ssh.
> 
> anyone know why?
> 
> --
> robert canary
> system services
> OhioCounty.Net
> [EMAIL PROTECTED]
> (270)298-9331 Office
> (270)298-7449 Fax
> 
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list

--
robert canary
system services
OhioCounty.Net
[EMAIL PROTECTED]
(270)298-9331 Office
(270)298-7449 Fax



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to