GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
861 stars 359 forks source link

Possible to change the name of gmt.conf and gmt.history? #8618

Open marshallst opened 3 hours ago

marshallst commented 3 hours ago

I was wondering if it is possible in GMT6.5.0 to change the name of gmt.conf and gmt.history to alternative names? I have played with environment variables in Ubuntu Linux (WSL1) and was able to change the location of these files, but not their names. For example export GMT_TMPDIR="data/csv" successfully changes the locations of gmt.conf and gmt.history

I am not sure if these are used by GMT, but I tried the following with no luck export GMT_USER_CONFIG="data/csv/test.conf" export GMT_HISTORY_FILE="data/csv/test.history"

The reason for this is that I am running GMT on a server and I am trying to avoid file collisions when multiple requests come in at nearly the same time, so I would like each instance of GMT to use an auto-generated custom name for gmt.conf and gmt.history.

If you have any tips or suggestions, that would be helpful. -Scott

welcome[bot] commented 3 hours ago

👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!

Please make sure you read our Contributing Guide and abide by our Code of Conduct.