Topic "Skipping errors"

Author Message
LordJezo

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
You can try:
option batch continue
_________________
Martin Prikryl
LordJezo

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Setting option confirm to off disables overwrite (and resume) confirmations only.
_________________
Martin Prikryl
LordJezo

Guest


prikryl 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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
No, it is not a confirmation, it is an error. For this turn off resume support as it is suggested in the message.
_________________
Martin Prikryl
LordJezo
[View user's profile]

Joined: 2010-05-12
Posts: 2
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>


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