Topic "How to replace trailing character"

Author Message
dcatcha

Guest


I am trying to download\copy some Linux Dir to a windows box, and any file\object in a Linux directory that has "RandomName@" errors in the SCP copy. It is not a folder, and I have root access... my thought is on the copy to download and change the trailing"@" to "01a", so they can be identified after the copy is done. Additionally, I am running this as a background process which the guide says it won't prompt for errors, but I find my self clicking "OK" all day long.

I looked at the grep custom search command, but it I don't see\know how to set a pattern where last character is "@" replace with [01a]


Thanks...
Advertisements
dcatcha

Guest


Sorry, I guess I forgot to mention -
I am connecting via SCP, as root
I am using v 5.5.6.0 Modified date 10/16/2014
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
I cannot reproduce your problem.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
Guest




prikryl wrote:
I cannot reproduce your problem.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Here is the error, see attached image. I will work on getting a log uploaded. In regards to the version, it looks like I am current.
EXAMPLE_ERROR.PNG (24.9 KB)

Description: Screenshot showing failed then looking in the dir you see the file.

EXAMPLE_ERROR.PNG

dcatcha

Guest


prikryl wrote:
I cannot reproduce your problem.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Here is a log and screenshot to go with it.
to go with log.PNG (12.39 KB)

Description: this corresponds with the log.

to go with log.PNG

log.txt (81.68 KB) Private file

Description: Here is the log to go with the pic.

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
If you cannot work with the file in shell, it's unlikely you can work with it in WinSCP with SCP protocol. Did you try SFTP?
Guest




prikryl wrote:
If you cannot work with the file in shell, it's unlikely you can work with it in WinSCP with SCP protocol. Did you try SFTP?


No, I have not tried SFTP yet.
It works, sort of... Isn't there a way to copy\rename on the fly, or exclude "randomnamerandomlength@" so if ends with "@" don't copy or replace it with a valid character?
Why do I get prompted to click OK, at least if that didn't happen I could let the copy run.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Quote:
Isn't there a way to copy\rename on the fly, or exclude "randomnamerandomlength@" so if ends with "@" don't copy or replace it with a valid character?

The problem is about inability to access the remote file, not about an inability to save the file locally with "@" at the end. So there's nothing to rename.
You can exclude them though. Use file mask *@.
See http://winscp.net/eng/docs/file_mask

Quote:
Why do I get prompted to click OK, at least if that didn't happen I could let the copy run.

Well, because an error occurred. Usually, you want to know that.
_________________
Martin Prikryl
Guest




prikryl wrote:
Quote:
Isn't there a way to copy\rename on the fly, or exclude "randomnamerandomlength@" so if ends with "@" don't copy or replace it with a valid character?

The problem is about inability to access the remote file, not about an inability to save the file locally with "@" at the end. So there's nothing to rename.
You can exclude them though. Use file mask *@.
See http://winscp.net/eng/docs/file_mask

Quote:
Why do I get prompted to click OK, at least if that didn't happen I could let the copy run.

Well, because an error occurred. Usually, you want to know that.


Should the checkbox "No confirmation for transfers" negate the warning? If not, Is there a way to stop them from showing up?
Guest




I have tried the mask of "| *@" & "*@". "*@" places this in include files, and "| *@" is exclude - In both cases I also check the box for newer files and I still get the error on file transfer.
Guest




I tried SFTP and get the same errors with transfers, any file with "randomname@".
Guest




prikryl wrote:
Quote:
Isn't there a way to copy\rename on the fly, or exclude "randomnamerandomlength@" so if ends with "@" don't copy or replace it with a valid character?

The problem is about inability to access the remote file, not about an inability to save the file locally with "@" at the end. So there's nothing to rename.
You can exclude them though. Use file mask *@.
See http://winscp.net/eng/docs/file_mask

Quote:
Why do I get prompted to click OK, at least if that didn't happen I could let the copy run.

Well, because an error occurred. Usually, you want to know that.


I have tried the mask of "| *@" & "*@". "*@" places this in include files, and "| *@" is exclude - In both cases I also check the box for newer files and I still get the error on file transfer. Any thoughts as to why the filter does not exclude that file?

I also tried connecting with the SFTP connection and I get the errors on the same files with the exclude filter being applied |*@


Yes, I agree you may want to know but also in some cases as mine you just want the bulk of the data, and take a second pass after reviewing some logs.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Quote:
Should the checkbox "No confirmation for transfers" negate the warning? If not, Is there a way to stop them from showing up?

It's not a confirmation. It's an error.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Anonymous wrote:
I have tried the mask of "| *@" & "*@". "*@" places this in include files, and "| *@" is exclude - In both cases I also check the box for newer files and I still get the error on file transfer.

Please attach a full log file showing the problem (using the latest version of WinSCP) using file mask "| *@".

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
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