tags:

views:

172

answers:

1
ssh pvuser@host '. ~pvuser/.profile;/opt/datamart/bin/resmgr -import segp 

-colNames "npath cond type" -line "~Thresholds~Transmission_Auto|_|$r|_|rule|_|"'

I am having trouble trying to pass the variable $r to ssh in my bash script above.

Thanks for help

+2  A: 

can you try this?

ssh pvuser@host ". ~pvuser/.profile;/opt/datamart/bin/resmgr -import segp -colNames \"npath cond type\" -line \"~Thresholds~Transmission_Auto|_|$r|_|rule|_|\""
ghostdog74
thanks it worked very well :)
soField
worked great for me also :)
Antoine Benkemoun