in reply to Re^16: transfer a file via SFTP
in thread transfer a file via SFTP
Great!!
You should be able to move the setup of the sftp connection outside (before) the loop. One connection should suffice to transfer several files.
When you move the log file within the loop, the first time it will work but after that the file isn't there. If you want a separate log file for each file processed then you should probably set this up separately for each file within the loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^18: transfer a file via SFTP
by cc (Beadle) on Aug 05, 2009 at 16:31 UTC | |
by ig (Vicar) on Aug 05, 2009 at 18:31 UTC | |
by cc (Beadle) on Aug 06, 2009 at 14:47 UTC | |
by ig (Vicar) on Aug 06, 2009 at 19:51 UTC |