Hi, all: 

I want to know the default path after the user logs in through SFTP protocol. 
Therefore, I did the following: 
======================================
q...@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

Reply via email to