cURL / Mailing Lists / curl-users / Single Mail

curl-users

AW: Problem with special character # on target file

From: Chenevard Alfredo <alfredo.chenevard_at_axa-tech.com>
Date: Mon, 23 Apr 2012 14:34:32 +0200

 
Message: 3
Date: Mon, 16 Apr 2012 22:47:49 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
To: the curl tool <curl-users_at_cool.haxx.se>
Subject: Re: SFTP : Problem with special character # on target file
Message-ID: <alpine.DEB.2.00.1204162247010.15394_at_tvnag.unkk.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Wed, 11 Apr 2012, Chenevard Alfredo wrote:

> I have the following problem and I hope somebody can help.
>
> I try :
> /usr/local/bin/curl -v -T /tmp/ga#ga.txt -u C723576 --pubkey
> export/home/C723576/.ssh/id_rsa.pub --key
> /export/home/C723576/.ssh/id_rsa -k
> "sftp://10.152.122.49:22/tmp/ga\#ga.txt"
>
> On the target system the file looks
>
> 4 -rw-r--r-- 1 C723576 C723576 15 Apr 11 14:40 ga\
>
> What can/must I do so the filename are complete on the target system ?

Is that remote file system even capable of handling '#' letters in file
names?

-- 
  / daniel.haxx.se
>> Yes. If I didn't give a remote file name, like this ....
/usr/local/bin/curl -v -T /tmp/ga#ga.txt  -u C723576 --pubkey 
> export/home/C723576/.ssh/id_rsa.pub --key 
> /export/home/C723576/.ssh/id_rsa  -k 
> "sftp://10.152.122.49:22
... on the target/remote site the file is correct.
A.Chenevard
>> I need support! No community member has experience with handling of
special character # within target file...
A.Chenevard
>> I have tried everything possible so that I can create a file with a
#. Nothing seems to work. 
   I need a different remote file name as the original     
   Does anyone have any idea how I can come to a result ?? 
Request with remote file name: ga\#ga_new.txt
/usr/local/bin/curl -v -T  /tmp/ga#ga.txt -u C723576 -k
sftp://10.152.122.14:22/tmp/ga\#ga_new.txt
-rw-r--r-- 1 C723576 C723576       23 Apr 11 14:40 ga\
Request without remote file name
/usr/local/bin/curl -v -T  /tmp/ga#ga.txt -u C723576 -k
sftp://10.152.122.14:22/tmp/
-rw-r--r-- 1 C723576 C723576       23 Apr 11 14:40 ga#ga.txt
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-23