Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

LordJezo

Final Update:

Oh I figuted it out! My script was pointing to a version of Winscp from 2005! It was version 3.

I have changed it to point to the proper directory and the option is now accepted. Whoops!

--------

Maybe I am doing something wrong? I tried the option but I got this message in the script:



confirm off
Unknown value 'continue' of option 'batch'.
Initialisation...
Searching for host...
Cannot open remote file '/myfiles/file.gz'.
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3
(A)bort, (R)etry, (S)kip, Ski(p) all:

and then it hangs at the prompt.

I am using version from 2008.

----

I upgraded to the latest release and get the error when running a script:

Unknown value 'continue' of option 'batch'.

Here is what the script looks like on the first few lines that is read into winscp:

ECHO is off.
option confirm off
option batch continue
open user:password@server.address.com


---

I tried running it without a script, by hand from the prompt, this is what I see:

C:\Program Files\WinSCP>winscp
winscp> option
echo off
batch off
confirm on
transfer automatic
reconnecttime off
winscp> option batch
batch off
winscp> option batch continue
batch continue
winscp>


martin

No, it is not a confirmation, it is an error. For this turn off resume support as it is suggested in the message.
LordJezo

martin wrote:

Setting option confirm to off disables overwrite (and resume) confirmations only.


So the first method would be the best way to avoid something like this?

"Transfer was succesfully finished, but temporary transfer file 'access.29Apr.fil epart' could not be renamed to target file name 'access.29Apr'. If the problem p ersists, you may try to turn off transfer resume support.
(A)bort, (R)etry, (S)kip, Ski(p) all:"
martin

Setting option confirm to off disables overwrite (and resume) confirmations only.
LordJezo

Thanks.

Now when the script runs the option:

confirm off

Shows up in the text. Since I haven't had anything break since turning it on can you give me a quick run down for my notes of what this does and what to expect when something would happen?

Normally the problems would occur and I would see something like a prompt asking me to (s)kip (a)bort (r)etry or (o)verwrite. Will this bypass all that?
martin

Re: Skipping errors

You can try:
option batch continue
LordJezo

Skipping errors

I think I understand it but I just want to make sure..

I have the scrips running at night and sometimes it will come up with random "Permission Denied" errors when grabbing a file as it might be in use.

Is the option to just have these options skipped and the script move on to the next file be:

option batch on

?

I want it to process the files instead of it hanging up at 2 in the morning until someone gets on the console and pushes a button for it to continue.