cURL / Mailing Lists / curl-library / Single Mail


RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <>
Date: Mon, 19 Oct 2009 14:52:10 +0800

> -----Original Message-----
> From: Kamil Dudka []
> Sent: Monday, October 19, 2009 2:36 PM
> To: Xu, Qiang (FXSGSC)
> Cc:
> Subject: Re: libcurl and libssh2
> You want to tweak your MANPATH. Look at /etc/man.conf and
> man.conf(5) man page. Or you can configure curl build with
> --enable-manual and then you'll have the manual available via
> curl --manual.

It seems "--enable-manual" is included in the default options. For my build via "./configure --with-libssh2=/home/qxu/opensrc/libssh2-1.2 -disable-shared", "./curl --manual" works.

Now I can get the new -Q options:
       -Q/--quote <command>
              (FTP/SFTP) Send an arbitrary command to the remote FTP or SFTP
              server. Quote commands are sent BEFORE the transfer takes place
              (just after the initial PWD command in an FTP transfer, to be
              exact). To make commands take place after a successful transfer,
              prefix them with a dash '-'. To make commands be sent after
              libcurl has changed the working directory, just before the
              transfer command(s), prefix the command with a '+' (this is only
              supported for FTP). You may specify any number of commands. If
              the server returns failure for one of the commands, the entire
              operation will be aborted. You must send syntactically correct
              FTP commands as RFC959 defines to FTP servers, or one of the
              commands listed below to SFTP servers. This option can be used
              multiple times.

              SFTP is a binary protocol. Unlike for FTP, libcurl interprets
              SFTP quote commands before sending them to the server. Follow-
              ing is the list of all supported SFTP quote commands:

              chgrp group file
                     The chgrp command sets the group ID of the file named by
                     the file operand to the group ID specified by the group
                     operand. The group operand is a decimal integer group ID.

              chmod mode file
                     The chmod command modifies the file mode bits of the
                     specified file. The mode operand is an octal integer mode

              chown user file
                     The chown command sets the owner of the file named by the
                     file operand to the user ID specified by the user
                     operand. The user operand is a decimal integer user ID.

              ln source_file target_file
                     The ln and symlink commands create a symbolic link at the
                     target_file location pointing to the source_file loca-

              mkdir directory_name
                     The mkdir command creates the directory named by the
                     directory_name operand.

              pwd The pwd command returns the absolute pathname of the cur-
                     rent working directory.

              rename source target
                     The rename command renames the file or directory named by
                     the source operand to the destination path named by the
                     target operand.

              rm file
                     The rm command removes the file specified by the file

              rmdir directory
                     The rmdir command removes the directory entry specified
                     by the directory operand, provided it is empty.

              symlink source_file target_file
                     See ln.
There is a lot of difference from the old manual, regarding this option.

Thanks a lot,
Xu Qiang
List admin:
Received on 2009-10-19