- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Net::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
Forums
Discussions
Discussions
Discussions
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
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
09-03-2008 04:22 PM
09-03-2008 04:22 PM
Net::SFTP
/opt/perl? The one I found does not compile
very well and the make install wants to put
it in /ots/perl/... not /opt/perl.
Is there an HP depot version?
I need to be able to do multiple file
transfers and ftp has been blocked so
Net::FTP is no longer working.
I could use Expect but do not know how to
do multiple file transfers. Expect does not
understand "*" wildcard. Using scp requires
passing password and so cannot use "for" loop
in sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2008 09:12 PM
09-03-2008 09:12 PM
Re: Net::SFTP
> I need to be able to do [...]
Which problem are you trying to solve,
getting some perl module to work, or finding
some way to S-transfer some files?
> [...] Expect does not
> understand "*" wildcard. [...]
Why should "expect" understand any wildcard?
> Using scp requires passing password [...]
It does? Who set up your public key stuff?
ra# uname -a
SunOS ra 5.10 Generic_127127-11 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
ra# ls -l fred*
-rwxr-xr-- 1 sms 20 34 Aug 23 22:46 fred.dat
-rwxr-xr-- 1 sms 20 34 Aug 23 22:46 fred2.dat
alp $ tcpip show version
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2
alp $ scp ra:"fred*" .
fred.dat | 34B | 0.0 kB/s | TOC: 00:00:01 | 100%
fred2.dat | 34B | 0.0 kB/s | TOC: 00:00:01 | 100%
alp $ dire /date /prot /size
Directory ALP$DKA0:[SMS.FTPTEST]
FRED.DAT;1 1 4-SEP-2008 00:06:26.41 (RWD,RWD,R,)
FRED2.DAT;1 1 4-SEP-2008 00:06:26.51 (RWD,RWD,R,)
Total of 2 files, 2 blocks.
If I had more time to waste, I expect that I
could do all of that with HP-UX, too, but
these things were up and running already.
Perhaps it would help if you could describe
more clearly exactly what you need to do,
and, perhaps, what you have tried which
doesn't act as you'd like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 08:41 AM
09-08-2008 08:41 AM
Re: Net::SFTP
Where can I find Net::SFTP to put in
/opt/perl? The one I found does not compile
very well and the make install wants to put
it in /ots/perl/... not /opt/perl.
Is there an HP depot version?
Ignore the rest since all you want to do is banter about that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 09:07 AM
09-08-2008 09:07 AM
Re: Net::SFTP
You can fetch Net::SFTP from CPAN:
http://search.cpan.org/~dbrobins/Net-SFTP-0.10/lib/Net/SFTP.pm
...but it is hard to get installed:
http://deps.cpantesters.org/?module=Net%3A%3ASFTP&perl=5.8.8&os=any+OS
> Using scp requires passsing password...
No, not if you setup public keys. See Matti's post here:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1254688
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 09:30 AM
09-08-2008 09:30 AM
Re: Net::SFTP
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 09:46 AM
09-08-2008 09:46 AM
Re: Net::SFTP
> Yes, I added pub key.
Then, you could also use SFTP in a shell script with a batch file, along the lines of:
...
sftp -v -b - <
cd /remotepath
get -P ${FILE} ${FILE}.local
EOF
...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 06:58 PM
09-08-2008 06:58 PM
Re: Net::SFTP
thought that I was demonstrating that one
could use scp with wildcard file names, and
the it didn't really require passing a
password (contrary to your claim).
Lacking a clear description of the problem
you're really trying to solve, non-psychics
(like me) sometimes take a stab in the dark,
in the hope of providing some useful
information. Sometimes we fail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 08:34 AM
09-10-2008 08:34 AM
Re: Net::SFTP
looking like it was going to be a real
pain to modify to make it work and I did
not have the time since I was in a
production down outage that needed to be
fixed immediately. I did end up just
putting scp in the script that called the
perl script to that did do the Net::FTP.
I like using the NET::FTP since I can trap
error messages at any point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 11:02 AM
09-18-2008 11:02 AM
Re: Net::SFTP
its a much easier install
perl -MCPAN -e shell
install Net::SFTP::Foreign
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 11:18 AM
09-18-2008 11:18 AM
Re: Net::SFTP
When I click on the download I get the error at http://cpan.uwinnipeg.ca/dist/Net-SFTP-Foreign:
Content Encoding Error (content_encoding_error)
Server response could not be decoded using encoding type returned by server.
This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently.
For assistance, contact your network support team.
It's all going to hell real fast like our
economy.