cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

response to quoted pwd command in libcurl

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Tue, 10 Nov 2009 17:33:00 +0800

Hi, all:

I want to know the default path after the user logs in through SFTP protocol. Therefore, I did the following:
======================================
qxu@durian(pts/2):~/opensrc/curl-7.19.6/src[112]$ ./curl -u qxu:fair123 sftp://13.198.98.190/~/scan/ --quote "pwd" --libcurl sftp_pwd_test.c
drwxrwxr-x 3 qxu XOG_cc 9216 Nov 6 18:30 .
drwxrwxr-x 20 qxu XOG_cc 3072 Nov 10 16:28 ..
drwxrwxr-x 2 qxu XOG_cc 7168 Nov 5 16:14 sxc
-rwxr-xr-x 1 qxu XOG_cc 560 Nov 5 16:13 ren3.pl
-rwxr-xr-x 1 qxu XOG_cc 131 Nov 2 11:56 ren1.sh
-rw-r--r-- 1 qxu XOG_cc 2106 Nov 6 18:29 test.txt
-rwxr-xr-x 1 qxu XOG_cc 88 Nov 5 16:15 ren2.sh
-rw-r--r-- 1 qxu XOG_cc 2106 Nov 6 18:30 test1.txt
======================================
The command seems to be successful, but I can only see the destination directory's content listing. How can I retrieve the result of the quoted command "pwd", both by curl command and by libcurl?

Looking forward to help,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-10

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET