Programming interfaces to FTP client

Hi,

I am looking if there is any programming support to FTP a file from a
network element to remote FTP server. If yes, kindly point me to appropriate
documentation.

Thanks and regards,
MK

Mukesh <mkohli@infinera.com> wrote:

Hi,

I am looking if there is any programming support to FTP a file from a
network element to remote FTP server. If yes, kindly point me to appropriate
documentation.

I assume you mean ftp scripting. One easy way is to avoid the auto-login
mode:

$ printf “user mkohli passwd\nput file.txt\nquit\n” > /tmp/ftp.script
$ ftp -n localhost < /tmp/ftp.script

A second way is to use expect:
http://expect.nist.gov/

Thanks and regards,
MK


Kirk Russell Bridlewood Software Testers Guild

Actualy I am looking for using (FTP) it in programs. I am looking for list
of API’s that I can call from c/c++ programs.

Any way thanks for your input.

Regards,
MK

“kirk” <kirussel@NOSPAMrogers.com> wrote in message
news:b29na0$hfp$1@inn.qnx.com

Mukesh <> mkohli@infinera.com> > wrote:
Hi,

I am looking if there is any programming support to FTP a file from a
network element to remote FTP server. If yes, kindly point me to
appropriate
documentation.

I assume you mean ftp scripting. One easy way is to avoid the auto-login
mode:

$ printf “user mkohli passwd\nput file.txt\nquit\n” > /tmp/ftp.script
$ ftp -n localhost < /tmp/ftp.script

A second way is to use expect:
http://expect.nist.gov/

Thanks and regards,
MK


Kirk Russell Bridlewood Software Testers Guild

Mukesh <mkohli@infinera.com> wrote:

Actualy I am looking for using (FTP) it in programs. I am looking for list
of API’s that I can call from c/c++ programs.

Posted elsewhere – we don’t ship one, but some have been written…
try google for “libftp” or “ftp library” or similar. Port to QNX 6
should be pretty easy. (They do exist.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

We’re currently using “libftp” (from ftp.qnx.com/usr/free/qnx4/tcpip/ftp/)
on Qnx 4.25; the original code
was pretty buggy so, if you’re interested, I could make the source code for
our implementation available
but it would have to be on a “no support” basis. IIRC, there were several
memory leaks and pointer usage problems.

Dan Garber | Systems Engineer, Advanced Process Control Engineering | VERTIS
dgarber@vertisinc.com | http://www.vertisinc.com



“David Gibbs” <dagibbs@qnx.com> wrote in message
news:b29rpp$9jb$3@nntp.qnx.com

Mukesh <> mkohli@infinera.com> > wrote:
Actualy I am looking for using (FTP) it in programs. I am looking for
list
of API’s that I can call from c/c++ programs.

Posted elsewhere – we don’t ship one, but some have been written…
try google for “libftp” or “ftp library” or similar. Port to QNX 6
should be pretty easy. (They do exist.)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Dan Garber <dgarber@vertisinc.com> wrote:

We’re currently using “libftp” (from ftp.qnx.com/usr/free/qnx4/tcpip/ftp/)
on Qnx 4.25; the original code
was pretty buggy so, if you’re interested, I could make the source code for
our implementation available
but it would have to be on a “no support” basis. IIRC, there were several
memory leaks and pointer usage problems.

I used libftp from QNX4. It was worse than “pretty buggy”. It was a
mess, at least when I tried it.

However, if you have a new and improved version, I’d like to try it.
I’ll waive any and all liabilities and expectations of support.

does curl have a libcurl support for ftp?

Bill Caroselli <qtps@earthlink.net> wrote:

Dan Garber <> dgarber@vertisinc.com> > wrote:
We’re currently using “libftp” (from ftp.qnx.com/usr/free/qnx4/tcpip/ftp/)
on Qnx 4.25; the original code
was pretty buggy so, if you’re interested, I could make the source code for
our implementation available
but it would have to be on a “no support” basis. IIRC, there were several
memory leaks and pointer usage problems.

I used libftp from QNX4. It was worse than “pretty buggy”. It was a
mess, at least when I tried it.

However, if you have a new and improved version, I’d like to try it.
I’ll waive any and all liabilities and expectations of support.


cburgess@qnx.com