Operating System - HP-UX
1832867 Members
2833 Online
110048 Solutions
New Discussion

copying files from HP-UX to Windows

 
Eric Sauve
Occasional Advisor

copying files from HP-UX to Windows

I've been looking for a way to copy files from an HP9000 to a Windows 2K box for a while and I can't find a simple tool that will do the job. I want to copy files from a HPUX server to a Windows 2K server and I need to be able to use the date variable during the copying process in order to automate the copying of multiples similar files. I've looked at Microsoft's Services for Unix 3.0 but it seems overly complex for just copying files from UNIX to Windows 2K. Suggestions would be greatly appreciated. TIA...
7 REPLIES 7
William Wong_2
Trusted Contributor

Re: copying files from HP-UX to Windows

You can use wget to mirror files from an HP-UX machine to a Windows machine. You can obtain a copy from http://www.interlog.com/~tcharron/wgetwin.html.
Otherwise you probably have to describe in a little more detail what you want to do.
Steven E. Protter
Exalted Contributor

Re: copying files from HP-UX to Windows

CIFS/9000 Server to let W2K write to HP-9000
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8725AA
CIFS/9000 Client to let HP-9000 write to W2K
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8724AA

Otherwise known as Samba

These applications are relatively simple to configure. The funcationality is already built into windows.

The rest of the process is scripting the actual tranfser process.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: copying files from HP-UX to Windows

CIFS/9000 -- Samba -- is one very easy solution. A second easy solution that will allow powerful scripting on either the UNIX box or the W2K box is Perl using the Net::FTP module. Search this forum for FTP AND Perl (boolean search) and you should find several examples.
If it ain't broke, I can fix that.
Michael Steele_2
Honored Contributor

Re: copying files from HP-UX to Windows

This is done everyday by hundreds with cron, 'FTP', . netrc and a PC FTP server application. By default the FTP server in windows 2000 is apart of the web server, IIS.

Here is a summary of the procedure:

a) Cron loads the FTP user dir with today's files to transfer.

b) 2nd cron 5 minutes later calls FTP script

c) The FTP user account that exists on server and client is called from within the FTP script. This FTP users account invokes the.netrc file automatically just by being in the FTP user's home directory.

c) The .netrc file contains a basic FTP command set for transferring files. This command set includes login, password, binary mode, put, get, mput, mget EOF, etc., See examples below.

d) The PC ftp server accepts the files.

e) PC schduler runs a macro 15 minutes later, or whenever, which invokes Excel, for example, and spreadsheets are created and saved automatically.

People with MeasureWare Spreadsheet do this for nightly server stats.

# cat /home/ftpuser/.netrc

machine SERVER login USER password SECRET macdef init
cd /remote-dir
lcd /local-dir
prompt
binary
mput *.*
quit
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: copying files from HP-UX to Windows

I would add that with Secure Shell for HP-UX and the windows equivalent, you could exchange public keys and have cron jobs use the

scp

command to copy jobs back and forth.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: copying files from HP-UX to Windows

You can also use NFS Maestro which is just like the other windows-UNIX interoperablity products.

check here Download the evals from

you can run a daemon on the unix and you can use the NFS Maestro client on the Windows side.


http://hummingbird.com/products/nc/evals.html
Caesar_3
Esteemed Contributor

Re: copying files from HP-UX to Windows

Hello!

You can use FTP and there you have multi get/put
Another option is to configure on HP the samba
and share the files to windows.

Caesar