Differences
This shows you the differences between the selected revisions of the page.
| 2007-05-01 | 2008-01-31 | ||
| no longer necessary to execute the php script directly, once pipes are used (martin) | upload (martin) | ||
| Line 1: | Line 1: | ||
| ====== Useful Scripts ====== | ====== Useful Scripts ====== | ||
| + | |||
| + | ===== [[upload]] Uploading single file ===== | ||
| + | |||
| + | Upload single file involves so little commands that it it enough to provide them on command line, saving writing a script file: | ||
| + | |||
| + | winscp.com user@example.com /command "put examplefile.txt /home/user/" "exit" | ||
| ===== Downloading file to timestamped-filename ===== | ===== Downloading file to timestamped-filename ===== | ||
| Line 21: | Line 27: | ||
| Now pass the generated script file as input to WinSCP ((WinSCP [[scripting#console|console interface tool]] supports script on standard input since 3.8.2 only. With earlier versions you need to store the script into temporary file first.)): | Now pass the generated script file as input to WinSCP ((WinSCP [[scripting#console|console interface tool]] 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 | winscp.com user@example.com /console /script="%temp%\download.tmp" | + | php -q download.php | winscp.com user@example.com /script="%temp%\download.tmp" |
| </code> | </code> | ||