Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!comp.vuw.ac.nz!massey!GEustace From: GEustace@massey.ac.nz (Glen Eustace) Newsgroups: comp.protocols.nfs Subject: Re: Unix filename from DOS with PC-NFS Keywords: PCNFS UNIX Message-ID: <400@massey.ac.nz> Date: 23 Nov 89 21:24:04 GMT References: <152DAVISTD@MSU> Organization: Massey University, Palmerston North, New Zealand Lines: 29 X-Reader: NETNEWS/PC Version 2.2 If the Unix filename is known, it is possible to open it directly, provided that the path conforms to DOS stds. i.e. fopen( "/dir1/dir2/dir3/aunixfilename", ... ) works fopen( "/dir1/dir2/aunixdirectory/myfile", ... ) does not. The program that posted this NETNEWS/PC actually mounts /usr/spool and reads all the articles directly, opening them is a problem when you have names like /aus/computers/ibmpc/37, the way I handle this is to do the following; chdir( "/news" ); chdir( "aus" ); chdir( "computers" ); chdir( "ibmpc" ); fopen( "37", "r" ); which works great. The only problem I have struck is trying to open unix files with mixed case i.e. 'MyFile' cannot be opened as PC-NFS downcases all the letters before attempting the open. With the above in mind, it would be nice to be able to find the Unix name for ABCDE~AA via a reverse mapping. -- ----------------------------------------------------------------------- Glen Eustace, Software Manager, Computer Centre, Massey University, Palmerston North, New Zealand. Phone: +64 63 69099 x7440 GMT+12 E-Mail via Internet: G.Eustace@massey.ac.nz <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Brought to you by Super Global Mega Corp .com