Afanasy Paths MapAfanasy has an ability to map paths. Every client can have a paths map file to translate paths to server and from server. Paths map desribed in pathmap* file(s). When job constructs (on the client side) all commands and working directories are translated from client to server. When task starts (on the client side) all commands and working directories are translated from server to client. Server does know nothing about paths map. At first Afanasy searches pathsmap files at home in "~./afanasy/pathmap*", so every user can customize paths. Then in a current directory ".", and every client can have some paths map. And at last in Afanasy root directory "AF_ROOT", which can be the same (network) for everyone during job submission. Each next file append previous paths. Client read this file(s) each time task starts. If there is no such file(s), or everything in it commented, paths will not be mapped at all.
Paths map file syntax:
# : comment MS Windows platform issues:
Real working paths map file:
Notice that 'tdh' project has two windows shares: '\\stor\projects\tdh' and '\\stor\tdh'. Some windows users have 'STOR' and others have 'stor' as the same fileserver name. And it works! |