> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Peter Stuge > Sent: Monday, October 19, 2009 9:17 AM > To: [email protected] > Subject: Re: quote commands in sftp > > I'm sorry, but then I do not understand what the problem is.
For example, suppose I want to remove the folder "DOC.XSM": ===================================================== ./curl -v -u qxu:fair123 sftp://13.198.98.190/ -Q "rmdir /home/qxu/scan/DOC.XSM" ===================================================== It only works when the folder is not empty. Since curl just sends the quoted command to the sftp server, it is probably the server that executes the command (and fails). > Yes, but note that draft-13 may have changed some things > which are implemented in OpenSSH according to draft-02, so it > is important to look at the correct specification for the > software you are working with. > > If you are working with several different servers, each > supporting different versions of the draft, then the code may > require development to seamlessly use the maximum features of > all servers. Now I am working with sftp server. So is http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13 enough for me? :-) > I'm sorry, I don't think I understand this. Can you explain > what you mean by "quote commands" ? Please refer to the above quoted command in curl expression. Thanks, Xu Qiang _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
