Automatically resolving WINDOWS paths to pre-configured Linux paths
My problem needs AUTOMATIC resolution of WINDOWS paths (with drive letters et al) to pre-configured LINUX paths on RedHat 9.0 machines. Specifically, I have a third party application (running on both Windows and Linux platforms), which generates data files with embedded file paths corresponding to the particular OS file naming system. Consider the following example. Say, I create a data file using my application (lets call it X) on Windows XP. The contents of the data file will look as follows:
#Data file for application X
Now, I need to process this same data file on a RedHat Linux 9.0 box. The problem is that Linux does not use drive letters, it is case sensitive and the slashes are also different. So, the embedded file path won't be resolved correctly by Linux. This is the crux of my problem.
So, what I am looking for is some Linux app ,which can be configured to maintain a table of Windows path mappings to their corresponding Linux counterparts. It would look something like this:
WINDOWS FILE PATH LINUX FILE PATH
This app can then inform the OS of the configured drive mappings. SO, whenever the RH 9.0 OS encounters the Windows style file paths it looks up the table (might need a kernel mod for doing that) and resolves it to the correct Linux file path (provided it has been configured in the table).
Is there any such Linux app out there? I can solve my problem by writing scripts to read through the entire data file and perform the file path replacement wherever necessary. However, the problem is that the data files are huge (> 100 MB) and therefore the aforementioned solution becomes really expensive.
Any help in this regard will be highly appreciated.
Thanks & Regards,