soField
soField

Reputation: 2696

passing bash variables to ssh

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

Upvotes: 1

Views: 1943

Answers (1)

ghostdog74
ghostdog74

Reputation: 343057

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

Upvotes: 6

Related Questions