Differences

This shows you the differences between the selected revisions of the page.

2006-06-19 2006-06-19
truncate too long line (martin) 3.8.2 script on standard input (martin)
Line 12: Line 12:
</code> </code>
-Execute the script and store the results into temporary script file. The generated script file will look like:+Execute the script to generate actual WinSCP script file. The generated script file will look like:
<code winscp> <code winscp>
Line 19: Line 19:
</code> </code>
-Now pass the generated script file to WinSCP. You can automate all these steps using simple batch file: +Now pass the generated script file as input to WinSCP ((WinSCP supports script on standard input since 3.8.2 only. With earlier versions you need to store the script into temporary file first.)):
<code> <code>
-php -q download.php > "%temp%\download.tmp" +php -q download.php | winscp3 user@example.com /console /script="%temp%\download.tmp"
-winscp3 user@example.com /console /script="%temp%\download.tmp" +
-del "%temp%\download.tmp"+
</code> </code>

Last modified: by martin