The trick is to tweak the unix side, using symbolic links
or making mount directories that simulate the windows path
layout.
Often, it's just a matter of putting symbolic link(s)
in the right place on the unix machines to make UNC
paths work under unix.
For instance, on my network, before I created the symlinks,
I needed a different path on each platform to access a particular file:
//tahoe/net/tmp/foo - UNC path; works on windows
/mnt/net/tmp/foo - Unix path; typical mount directory name
I only needed to run these two commands on my unix machines
to make the Windows UNC paths work correctly:
paths work:
mkdir /tahoe
ln -s /mnt/net /tahoe/net
..this makes the unix path //tahoe/net/tmp/foo resolve to the actual
mount directory /mnt/tahoe/net/tmp/foo, resolving equally well.
You can find out the UNC pathnames for your drive maps by
typing at a DOS prompt:
For example:
C:\>net use
New connections will be remembered.
Status Local Remote Network
-----------------------------------------------------------------------------
Connected Z: \\tahoe\net Microsoft Windows Network
----- ---------------
Drive UNC pathname
Note that in many 3rd party browsers, you have to include the
trailing slash after the volume name to browse the base directory.
eg. when typing the first part of a UNC path into a browser, include
the trailing slash:
//tahoe/net -- BAD: might not present a directory listing
//tahoe/net/ -- GOOD: more likely will present a listing
With no exceptions that I'm aware, all third party applications (Maya,
Renderman, Houdini, Rush, etc) will understand front slashes equally
well as backslashes in pathnames. Front slashes are preferred, as they
are portable across multiple platforms.
Only Microsoft's own tools have problems with frontslashes, namely:
- Explorer
- Desktop folder browser
- Many DOS commands such as COPY and DIR, which use
front slashes as argument flags.
In all other cases, frontslashes work fine, esp. in third party software,
like CSH, Perl, and all programs written in C or C++. C/C++ programs would
have to go out of their way to misinterpret front slashes.
|