User Activity

  • Modified a comment on discussion Open Discussion on Expect

    I found a command to directly scp my file to a host (C) via another host (B) from my computer. The command is in this form: scp -oProxyCommand="ssh -W %h:%p B" thefile C:destination I used it and it works good in command line. but when I want to write an expect script using this command, I got some errors. the script I've written is in this form: 1 2 3 4 5 6 7#!/usr/bin/expect set arg1 [lindex $argv 0] spawn scp -oProxyCommand="ssh -W %h:%p B" ./$arg1 C:destination interact and the error is: unknown...

  • Posted a comment on discussion Open Discussion on Expect

    I found a command to directly scp my file to a host (C) via another host (B) from my computer. The command is in this form: scp -oProxyCommand="ssh -W %h:%p B" thefile C:destination I used it and it works good in command line. but when I want to write an expect script using this command, I got some errors. the script I've written is in this form: 1 2 3 4 5 6 7#!/usr/bin/expect set arg1 [lindex $argv 0] spawn scp -oProxyCommand="ssh -W %h:%p B" ./$arg1 C:destination interact and the error is: unknown...

View All

Personal Data

Username:
mstv11695
Joined:
2017-06-11 01:29:11

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB