Topic "Scheduled script stops working randomly"

Author Message
rweaver

Guest


We've been using WinSCP successfully for several months with one frustrating issue. I have a very simple batch file that calls a WinSCP script and then makes a CURL request. This is scheduled to run very frequently (once per minute). This is run by Task Scheduler using my domain account.

Code:
winscp.com /script="script.txt" /log="FtpLogs/%date:~6,4%-%date:~3,2%-%date:~0,2%.txt" > ScriptOutput.txt
CURL -o CurlOutput.html -k https://127.0.0.1/some/url


Everything works perfectly for days and then, apparently randomly, the WinSCP script stops working - ScriptOutput.txt is empty and there is nothing appended to the log file. I can see that the batch file is executing fine, because the CURL request is still firing (so doesn't seem to be an issue with the scheduler). Also, if I run the batch file interactively everything works as expected (so also not apparently an issue with my domain user). However, the script just won't work when called from the scheduler.

The only thing I've found that resolves this is restarting the server.

Has anyone encountered this/got any advice?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You are probably a victim of this issue:
http://winscp.net/tracker/show_bug.cgi?id=996
_________________
Martin Prikryl
rweaver

Guest


Thanks for the update. I'll put some monitoring in to confirm I get exit code 3, and meanwhile +1 for the bug fix...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
If possible, please upvote my related question on StackOverflow:
http://stackoverflow.com/questions/18893366/why-registerclass-fails-with-error-not-enough-memory
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License