Guest User

Untitled

a guest
Aug 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. ssh remoteuse@ip "/bin/bash remote_script.sh"
  2.  
  3. ssh remoteuse@ip "/bin/bash remote_script.sh $variable"
  4.  
  5. foo="abc'def "123""
  6. ssh remoteuse@ip "foo=${foo@Q} /bin/bash remote.sh"
  7.  
  8. printf '<%s>n' "$foo"
  9.  
  10. $ ./local.sh
  11. <abc'def "123">
  12.  
  13. ssh remoteuse@ip "foo=$(printf '%q' "$foo") /bin/bash remote.sh"
Add Comment
Please, Sign In to add comment