From: <HBB...@t-...> - 2007-07-22 20:41:08
|
ma...@my... wrote: > Im using gnuplot v4.2 (WindowsXP) to print many data files. All data files > named equally but they are in different directories. So I can use the same > script for all my data. It's working in batch mode for each directory. Now > i want gnuplot to print the working directory in the chart title. I tried > the pwd command in some way but without any working results. Any idea for > my problem? You've painted yourself into a bit of a corner there. By trying to use the exact same script work for all those data files, you're hiding the very information from gnuplot that you want it to use. It would be easier to supply the actual filename as an argument of a called script (--> help call). And by doing this on MS Windows, of all platforms, you've cut yourself off from the usual workaround based on substitution, as in working_dir="`pwd`" The Cygwin version, e.g., doesn't have this problem. |