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

AlainM

PUT with special codes %xx in the filename

Hi,
I use the scripting automation to transfer files, and everything works fine.
Just one exception, when I try to transfer the file "Got+questions%3F.png"

So, wincsp tranfers the file on the serveur (linux debian 6).
But the filename becomes "Got+questions?.png" on the linux server.

I understand that it is because "%3F" is understood as "?" (special character).
But, if I write "put Got+questions%253F.png", Winscp answers that the file "Got+questions%253F.png" doesn't exist (can't find it).

So, what do you think, how can I make Winscp not "understand" the code "%3F" in the filename, and correctly name the file on the linux server ?
Thanks a lot for your help,
Alain
martin

Re: Problem with % character. To sent a printf command.

How are you sending the command?
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
gandalf

Problem with % character. To sent a printf command.

Hi everyone,
I have a problem sending a command printf to a remote Linux server by sftp.

In a long /command that has always worked fine, I need to send a formatted printf like this:
etc.....| awk '{ printf ("%s;%s", ,$8,$5)}'`....etc

The problem is the special character % (I've tried with %25, but nothing changed).
How, can I do? Any suggeston?
Thanks

Best Regards :)