Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh remoteuse@ip "/bin/bash remote_script.sh"
- ssh remoteuse@ip "/bin/bash remote_script.sh $variable"
- foo="abc'def "123""
- ssh remoteuse@ip "foo=${foo@Q} /bin/bash remote.sh"
- printf '<%s>n' "$foo"
- $ ./local.sh
- <abc'def "123">
- ssh remoteuse@ip "foo=$(printf '%q' "$foo") /bin/bash remote.sh"
Add Comment
Please, Sign In to add comment