Operating System - OpenVMS
1830178 Members
2294 Online
109999 Solutions
New Discussion

Re: Shared files on Unix NFS Volume

 
SOLVED
Go to solution
Paul Murray_4
Frequent Advisor

Shared files on Unix NFS Volume

We have an NFS volume (hosted on Unix) which we mount on our OpenVMS (7.3-2) server so as we can share files between the two platforms.

However, the files (although looking fine from VMS), are full of control characters that the Unix server cannot understand.

Is there a way on the VMS side to format the file so that it's readable on Unix ?? (Similar in the way that a dos2ux command does ?)

The process on the VMS host which creates the files, is a simple Perl script that simply uses :-

open(OUTFILE, ">", "targetfile");
print OUTFILE "some text\n";
...
...
close(OUTFILE);

Any help/advice is GREATLY appreciated !!!

Regards,
Paul
(VMS Newbie !!!)


Hey, nobody knows EVERYthing !!!
3 REPLIES 3
Ian Miller.
Honored Contributor
Solution

Re: Shared files on Unix NFS Volume

file formats on VMS are somewhat more varied than on unix. The default format for text files on VMS is not what unix expects a text file to look like. I think what you need to create is a streamLF format file (in VMS terms).
____________________
Purely Personal Opinion
Paul Murray_4
Frequent Advisor

Re: Shared files on Unix NFS Volume

Ian Miller ...... YOU ARE A STAR !!!!!

I didn't realize the formats were that different (I was fooled because VMS can quite easily read files created on the Unix host !!!).

Anyway, adding the file structure type into my perl open() command sorted the problem.

Many (MANY) thanks.

Paul.
Hey, nobody knows EVERYthing !!!
Antoniov.
Honored Contributor

Re: Shared files on Unix NFS Volume

Paul,
I hope read you again. Newbies are welcomed here.

Just for your information, command mount in tcpip console has option to convert file into stream_lf. Type
$ TCPIP HELP MOUN /CONVERT
(Don't type dollar, it's just a vms convention to say dcl shell).

Antonio Vigliotti
Antonio Maria Vigliotti