Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to pass a variable to remote ssh command

$ echo "$argument" | ssh root@remote_server 'cd /root/dir; xargs -0 ./run.sh'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #variable #remote #ssh #command
ADD COMMENT
Topic
Name
1+6 =