btobin0 has asked for the wisdom of the Perl Monks concerning the following question:
spawn sftp test@testserver.com expect -exact "password:" send "password" expect "sftp>" send "get /export/home/testfile/test /home/btobin0/damitsnotworking/ expect "sftp>" send "exit"
I tried to send the file from the SFTP prompt manually and now I am now gettting the error: Couldn't open local file "/home/btobin0/damitsnotworking/" for writing: No such file or directory It does exist. How do I fix it?This is the perl code. works just fine for (8 .. 46){ system ("expect net"); < A bunch of Perl Code > sleep 300 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and Expect Question
by shmem (Chancellor) on Mar 01, 2008 at 09:28 UTC | |
|
Re: Perl and Expect Question
by markhu (Initiate) on Mar 01, 2008 at 16:01 UTC | |
|
Re: Perl and Expect Question
by quester (Vicar) on Mar 01, 2008 at 19:58 UTC |