1833003 Members
2123 Online
110048 Solutions
New Discussion

ftps client

 
SOLVED
Go to solution
James Colby
Advisor

ftps client

All -

Can anyone recommend an FTP client package that I can use on my HP-UX 11.0 system? I am looking for a command line utility that I can call from a shell scripts. I have tried compiling some GNU packages (lftp) but I have not had much luck.

Thanks,
James
9 REPLIES 9
Steven Schweda
Honored Contributor
Solution

Re: ftps client

I know nothing, but Kermit claims to offer an
FTPS client:

http://www.columbia.edu/kermit/ftpfaq.html

Kermit can be built almost anywhere, so I'd
not expect many problems there (unless the
underlying run-time infrastructure is
missing/faulty).

http://www.columbia.edu/kermit/


> I have tried compiling some GNU packages
> (lftp) but I have not had much luck.

As usual, a pointer to the actual kit(s), and
a description of the actual problem(s) would
be more useful than vague descriptions.
whiteknight
Honored Contributor

Re: ftps client


Hi James,

By default HPUX already have FTP client installed.

To execute ftp from a shell script:

Sample shell script for ftp with redirected input:

#!/bin/sh
ftp -n host > ftp.log <<-EOF
user ftp ftp_password
asc
get test1
quit
EOF


The above will open an ftp connection to "host", login as user "ftp"
with password "ftp_password", set ascii transfer mode, and get file
"test1", then quit.

WK
please assign points
Problem never ends, you must know how to fix it
Steven Schweda
Honored Contributor

Re: ftps client

> please assign points

Please worry more about what the question
says, and less about the points you don't
deserve.
whiteknight
Honored Contributor

Re: ftps client

Steven,

it is my signature only ;-)


Let's wait James for clarification

WK
Problem never ends, you must know how to fix it
James Colby
Advisor

Re: ftps client

All -

Thanks for all of your suggestions. I'll try to clarify my problem and give more informations.

I need to script a process in which I upload a file to a remote FTP server using the FTPS (FTP + SSL) protocol. I am running HP-UX 11.0, and the standard FTP client (/usr/bin/ftp) does not support the FTPS protocol.

I did not find any FTPS clients supplied by HP. So I thought that I would try to find an Open Source FTPS client and compile it myself. I found a package called lftp (http://lftp.yar.ru/) I tried to compile it on my HP-UX 11.0 server using gcc 3.0.4. I configured the package using ./configure --with-openssl=/usr/local/ssl command. When I try to compile the package it fails with the attached error message.

So I guess what this all boils down to is that I would like to have a working ftps client on my system. My only requirement is that it is has a CLI that I can use in a shell script.

Any help that you can can provide will be most appreciated.

(I also wont forget to assign points)

Kind regards,
James
Steven Schweda
Honored Contributor

Re: ftps client

> it is my signature only ;-)

So being annoying automatically is somehow
better than being annoying manually?

> Let's wait James for clarification

What's to clarify? He asked for "ftps". You
offered "ftp". FTP and FTPS are spelled
differently for a good reason.

But back to the real world...

> When I try to compile the package it fails
> with the attached error message.

Your (old, obsolete) GCC seems to be
complaining about its own header files, which
suggests that there's a problem with the GCC
installation. Have you used it for anything
(else) successfully? I'll guess from the
"/opt/..." path that you didn't build it from
the sources. The kit you used may not be
suitable for your OS version. Irregardful of
which FTPS client you try to build, a working
C (and/or C++) compiler will probably be
required, and you don't seem to have one
(yet).
Robert-Jan Goossens
Honored Contributor

Re: ftps client

Hi James,

If i'm not mistaken both sftp and ftps are available in the open ssh secure shell depot.

http://www.borgware.de/171.html

Hope this helps,
Robert-Jan
James Colby
Advisor

Re: ftps client

I have used the version of GCC to compile some dependencies for lftp without any issues. I compiled libgcrypt, and openssl without any errors. I'll try take a look at the depot that was suggested.

Thanks everyone for your quick and helpful replies.
James Colby
Advisor

Re: ftps client

All -

Thanks for your suggestions. My ultimate fix was to compile a newer version of Kermit with ssl support. The version installed by default in HP-UX did not support SSL

Points have been assigned,

Thanks,
James