etphonehome2
IS-IT--Management
I have a sftp command which requires the passing of parameters to sftp in order for it to work:
sftp -o "ProxyCommand nc -X 5 -x Server_Name:1080 %h %p" userid@IP_Address
In Expect, how do I pass the quotes to spawn? When I put quotes, it does not seem to keep it:
spawn sftp -o "ProxyCommand nc -X 5 -x Server_Name:1080 %h %p" userid@IP_Address
sftp -o "ProxyCommand nc -X 5 -x Server_Name:1080 %h %p" userid@IP_Address
In Expect, how do I pass the quotes to spawn? When I put quotes, it does not seem to keep it:
spawn sftp -o "ProxyCommand nc -X 5 -x Server_Name:1080 %h %p" userid@IP_Address