Differences
This shows you the differences between the selected revisions of the page.
2012-03-12 | 2012-03-12 | ||
no summary (161.185.158.21) (hidden) | Restored revision 1323936304. Undoing revision 1331576380. (martin) (hidden) | ||
Line 30: | Line 30: | ||
- | The WinSCP client shows the timestamp of the files as one hour ahead after the daylight savings time has started yesterday. Please help. | + | ===== Example of Support Request for Scripting ===== |
+ | > Subject: **Trouble setting server timeout via command line** | ||
+ | > | ||
+ | > I have a client with a slow FTP server, it takes 25 seconds or so to connect. Whenever I attempt to add the ''-timeout=xxx'' switch to the end of my ''open'' command, WinSCP just bails out. No session log file is even created. If I remove the ''-timeout'' switch, it connects. | ||
+ | > | ||
+ | > Here is the command line:\\ | ||
+ | > ''winscp.exe /console /script=test.txt /log=log.txt'' | ||
+ | > | ||
+ | > Here is the script:\\ | ||
+ | > ''option batch abort''\\ | ||
+ | > ''option confirm off''\\ | ||
+ | > ''open user:pass@site -timeout=60''\\ | ||
+ | > ''option transfer binary''\\ | ||
+ | > ''get *05152008*''\\ | ||
+ | > ''close''\\ | ||
+ | > ''exit'' | ||
+ | > | ||
+ | > After running the script I get following in console:\\ | ||
+ | > ''batch abort''\\ | ||
+ | > ''confirm off''\\ | ||
+ | > ''Too many parameters for command 'open'.'' | ||
+ | > | ||
+ | > Using WinSCP 4.0.7 on Windows 2000. | ||
- | Jagdeep | ||
- | sethij@finance.nyc.gov |