cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

An issue about sftp quote command

From: Lisa Xu <lisa_xu_at_huatek.com>
Date: Thu, 19 Feb 2009 17:57:35 +0800

I want to remove a file test.txt from remote host. The file is in ~/abc/
folder.

Following is the command:
curl -v -u user:password sftp://192.168.129.61*/~/abc/* --quote "-rm *
test.txt*"

But this command just removed the file ~/test.txt not the file
~/abc/test.txt.

I use another command:
 curl -v -u user:password sftp://192.168.129.61/~ --quote "-rm *abc/test.txt
*"
Then the file in ~/abc/test.txt is removed.

I want to know why the first command is not fine.

Thanks,

Lisa

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET