I have an application which requires a XML configuration file as one of it's arguments.
Code:
application -c config.xml
I would like to dynamically execute new instances of this application, with a slightly modified configuration for each run. However, I don't want to dump each configuration into a file before feeding it to the application. Rather, I want to pass the xml data across the command line like:
Code:
application -c '<xml>...</xml>'
Now, obviously this won't work, since the application is looking for a string containing the filename, not the file contents itself.
So I'm curious if there is any possible method of wrapping the xml data in some kind of "psuedo-file" that can be fopen()'ed from the application as if it was a regular file"?