- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to convert an ftp command to sftp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 05:49 AM
тАО07-23-2010 05:49 AM
how to convert an ftp command to sftp
ftp -i -v pla_img_prod >/app/pro1/if/image_retrieval/image_retrieval_work_out/if280ftp20031021090405.0001.log 2>&1 << !
binary
get "lolc4\LC3034\ky575184001ad65b.pdf" /app/pro1/if/image_retrieval/image_retrieval_work_in/ky575184001ad65b.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 06:06 AM
тАО07-23-2010 06:06 AM
Re: how to convert an ftp command to sftp
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1439551
Is there some particular mystery here, or are
you completely bewildered?
Sometimes you get more help if you appear to
be trying to solve the problem yourself,
rather than asking others to do your whole
job for you.
Just a thought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 06:10 AM
тАО07-23-2010 06:10 AM
Re: how to convert an ftp command to sftp
You could just use scp, which will work without any scripting.
See this doc:
http://www.hpux.ws/?p=10
safe, secure password free openssh, which includes sftp,ssh and scp.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 06:27 AM
тАО07-23-2010 06:27 AM
Re: how to convert an ftp command to sftp
I would prefer to use scp, but we are under mandate to uses sftp.
Unfortunately, according to the man page sftp "is an interactive file transfer program" which is not what we need for batch processing. The [-o ssh_option] looks promising, if it can put sftp into a batch mode.
We handle error checking by grep on the log file looking for keywords.
After looking for a list of sftp errors, all I can find is this:
http://fixunix.com/ssh/330198-sftp-errors-messages.html
I don't even know if this is correct for the version of sftp we will use.
We don't even have an agreement regarding keys so we can eliminate storing passwords, yet they want this implimented by month end.
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 07:28 AM
тАО07-23-2010 07:28 AM
Re: how to convert an ftp command to sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 07:30 AM
тАО07-23-2010 07:30 AM
Re: how to convert an ftp command to sftp
> sftp "is an interactive file transfer
> program" which is not what we need for
> batch processing.
How is that different from your FTP client?
> The [-o ssh_option] looks promising, if it
> can put sftp into a batch mode.
It may be useful, but perhaps not much better
than getting commands from redirected input
(like the here-document in your FTP script
fragment).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 07:30 AM
тАО07-23-2010 07:30 AM
Re: how to convert an ftp command to sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 08:11 AM
тАО07-23-2010 08:11 AM
Re: how to convert an ftp command to sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2010 08:27 AM
тАО07-23-2010 08:27 AM
Re: how to convert an ftp command to sftp
See my comments including a shell-based SFTP batch script in this thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1265334
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2010 01:26 PM
тАО08-21-2010 01:26 PM