开发者

passing bash variables to ssh

开发者 https://www.devze.com 2022-12-18 22:28 出处:网络
ssh pvuser@host \'. ~pvuser/.profile;/opt/datamart开发者_StackOverflow社区/bin/resmgr -import segp
ssh pvuser@host '. ~pvuser/.profile;/opt/datamart开发者_StackOverflow社区/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


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|_|\""
0

精彩评论

暂无评论...
验证码 换一张
取 消