Community discussions

MikroTik App
 
ibn
just joined
Topic Author
Posts: 7
Joined: Sat Sep 29, 2007 3:43 pm

how to send the character $ , in ROS 3.x

Wed Jun 17, 2009 1:20 pm

same commands work well in ROS 2.9 (2.9.27)
but get errors in ROS 3.x (3.15):

--------------------------------------------------------
C:\>ssh2 -l admin 192.168.0.1 ":env print"
Authentication successful.
"var1"="sdf"

C:\>ssh2 -l admin 192.168.0.1 ":put $var1"
Authentication successful.
syntax error (line 1 column 7)

c:\
--------------------------------------------------------

so anything changed to handle the character $ ?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6012
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how to send the character $ , in ROS 3.x

Wed Jun 17, 2009 1:25 pm

upgrade to latest version
and then

ssh admin@192.168.0.1 ':global a 1; :put $a;'
 
chronos
newbie
Posts: 31
Joined: Tue Aug 05, 2008 3:54 pm

Re: how to send the character $ , in ROS 3.x

Thu Jun 18, 2009 12:30 pm

$ character should be escaped with \ if used with ssh from command line.

http://wiki.mikrotik.com/wiki/Use_SSH_t ... key_login)
 
ibn
just joined
Topic Author
Posts: 7
Joined: Sat Sep 29, 2007 3:43 pm

Re: how to send the character $ , in ROS 3.x

Mon Jun 22, 2009 5:14 am

upgrade to latest version
and then

ssh admin@192.168.0.1 ':global a 1; :put $a;'
What's new in 3.23:

...
*) ssh - now non-interactive console commands can reference variables;
...

I see . Thank you.

Who is online

Users browsing this forum: anav, Bing [Bot], chris72, Drageir, Google [Bot], Shqipalb and 89 guests