Operating System - HP-UX
1833780 Members
2315 Online
110063 Solutions
New Discussion

Re: Copy files from HP9000 to HP3000 in a script

 
Addie Wevers
Occasional Contributor

Copy files from HP9000 to HP3000 in a script

How can I copy files from a HP9000 to a HP3000 via a script?

Can I use 'ftp' or 'rcp', or is there a special HP utility I can use?
2 REPLIES 2
Paul Hite
Trusted Contributor

Re: Copy files from HP9000 to HP3000 in a script

The 3000 is more likely to support ftp than rcp. The Berkeley R-commands are mostly unix-only. But ftp is basic tcp-ip.

It is easy to script ftp. I wil try a code fragment and hope the software doesn't re-format it:

#! /usr/bin/ksh

HOST=hp3000
USER=joe
PASSWD=secret
ftp -nv <<-!x
open $HOST
user $USER $PASSWD
binary
cd some/directory
put some.file
!x

exit 0

Paul Bouchie
Occasional Advisor

Re: Copy files from HP9000 to HP3000 in a script

There are 2 ways I know of using FTP to automate transfers. Check attachment!

.netrc
.ctl files
42