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 }
In reply to Perl and Expect Problem by btobin0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |