All machines are on Windows Server 2003.
If I only install cygwin on one of the machine and run my python script on it to manipulate files from all remote hosts. How can I access to those files via UNC path?
All machines are on Windows Server 2003.
If I only install cygwin on one of the machine and run my python script on it to manipulate files from all remote hosts. How can I access to those files via UNC path?
Cygwin understands UNC pathnames that use two forward slashes (as opposed to the two backslashes typical of Windows -- in fact, under Cygwin, you must use forward slashes instead of backslashes anywhere in the path). I assume that this support would be propagated through to Python running on top of Cygwin, but I haven't ever tried it to confirm.
Edit: if you don't need to run python under cygwin, as you mention in a comment, then why are you doing so? Just install the native windows python from the python download site and forget about Cygwin. You'll probably have to double your backslashes in the path names, however, since IIRC Python uses backslash as an escape character, so to get one backslash in the final string you need to put in two.