Operating System - HP-UX
1832534 Members
7248 Online
110043 Solutions
New Discussion

ftps client. Note: NOT sftp

 
SOLVED
Go to solution
TwoProc
Honored Contributor

ftps client. Note: NOT sftp

Hey all,

I need an ftps client. No, I'm not talking about an sftp (ssh) client. It's two different things. I bring this up, because in looking over past postings on the topic, lots of replies are advising getting ssh to get sftp. ftps is really ftp over ssl, not ssh.

I've also seen posted replies on how to get an ftps server (ftpsd) going from one of HPUX Web Application Server type things. I just want a client tool that I can programmatically hit an ftps server with. I don't want an interactive tool, unless of course its an interactive tool with an nice non-interactive mode.

I see that I can do this with curl from Linux, would the curl from the HPUX porting archives do this for me? Do any HPUX standard distribution(s) have curl?

Any better suggestions on how to get this done? To be clear what I'm after - I want to have a batch program from a database app drop a file somewhere, then spawn a ksh to ftps the file over to the other company. Of course, I'd like it to be handled via shell scripting, and have some error control over the process, that is, I'd rather not use something like "expect" to fake out an application.

Thanks for any help!
We are the people our parents warned us about --Jimmy Buffett
6 REPLIES 6
Tim Nelson
Honored Contributor
Solution

Re: ftps client. Note: NOT sftp

We use cURL to transfer ftps files ( ftp over ssl ).

www.software.hp.com

Tim Nelson
Honored Contributor

Re: ftps client. Note: NOT sftp

example command line would be...

list a file:
curl --ftp-ssl --list-only -u ${login}:${password} ftp://${server}/* > ${tmp_file1} 2>> ${log_file}

put a file:
curl --ftp-ssl --upload-file ${upload_name} -u ${login}:${password} ftp://${server}/${dest}/${upload_name} >> ${log_file} 2>&1
ret_cod=$?


James R. Ferguson
Acclaimed Contributor

Re: ftps client. Note: NOT sftp

Hi TwoProc:

I'd look to 'cURL' as it supports FTPS.

You can fetch a binary distribution here:

http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/curl-7.19.0/

Regards!

...JRF...
TwoProc
Honored Contributor

Re: ftps client. Note: NOT sftp

PERFECT ! - You guys are AWESOME!

Thanks!
We are the people our parents warned us about --Jimmy Buffett
Ivan Krastev
Honored Contributor

Re: ftps client. Note: NOT sftp

See this table with sftp clients support matrix - http://www.ford-hutchinson.com/~fh-1-pfh/ftps-ext.html

I think the better will be sftpPlus - http://www.sftpplus.com/


regards,
ivan
Steven Schweda
Honored Contributor

Re: ftps client. Note: NOT sftp

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

Kermit has a built-in scripting capability,
too, so it can be as interactive or
non-interactive as you'd like.