Operating System - HP-UX
1829142 Members
2333 Online
109986 Solutions
New Discussion

How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

 
D Waghorn
Occasional Advisor

How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Hi there.
I currently need to export a report generated by an oracle database on an A500 server(HP-UX11.0) to a windows NT4.0 server. The report is a flat ASCII file which is stored within the OS.
Is there a way I can write this file to the HP-UX server's DAT drive in a format which can be read by the NT4.0 server's DAT drive, and then subsequently manipulated?
I believe Microsoft produce a program which enables Unix shell commands to be run on a windows machine. Is this the answer?
My head hurts!
9 REPLIES 9
Bill Hassell
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

You could try writing the file to the taspe using ux2dos as in:

ux2dos ASCII_filename > /dev/rmt/0m

The Windows side will be difficult since you need to read the tape and unlike Unix, there are no device files for each device. Tapes are normally handled by special backupp programs that handle linkages to the tape drive.

I don't know of a Microsoft product, but Cygwin might be a possibility. You might look at the GNU utilities at gnu.org but either will require a lot of work to get them running and exchanging data.


Bill Hassell, sysadmin
Eugeny Brychkov
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

There's utility for windows called WinTar. Tar archive created by this utility can be read by hpux host and vice versa, hpux tar archive can be read by this utility on the windows side
Eugeny
harry d brown jr
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Get GNU's tar for winDOZE:
http://mirrors.kernel.org/gnu/tar/tar-1.12.msdos.exe

and for hpux:

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/

live free or die
harry
Live Free or Die
Carlos Fernandez Riera
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Ye i know you can use Unix like commands in NT, but i dont now if dd or tar are ported.


Other solution is to write a simple (?) C programm that open the DAT as a file device and read directy from it.
unsupported
harry d brown jr
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

I have tar on my w2k(sucks) box.

live free or die
harry
Live Free or Die
Darren Prior
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Hi,

If both your A500 and NT4.0 servers are on the network then you could consider using CIFS/9000 and simply mapping a network drive on the NT server and copying the file across. I guess this also depends on the size of the ASCII file.

CIFS/9000 is a free download from http://software.hp.com

regards,

Darren.
Calm down. It's only ones and zeros...
Robert Gamble
Respected Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

I have many times successfully tar'd a file on HP-UX, copy to tape/CD-R/floppy and then used Winzip to 'un'tar it on a Windows workstation.

Good Luck!
Leif Halvarsson_2
Honored Contributor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Hi,
If the hosts is connected to network, why not use ftp from the NT host to the HP-UX host. Open a command window and do:
ftp

after logging in go th the directory with the file
cd
get

If you are in ascii mode (default) the file is converted to dos format.
Jacqueline Nguyen
Occasional Advisor

Re: How do I write an HP-UX ascii file to a DAT tape which can be 'read in' to a Windows NT4.0 server?

Hi,
An easy way to read the file is:
. launch Internet Explorer
. type ftp://
. go to file and select login as...
. enter username and passwd
. go to the directory (/var/sam/log)
. open br_index.full then read it from your system hp-ux.
Hope this help.
Jacqueline