I have an application that reads a text file.
If the application reads it from stdin, then I could forward the input / pipe it
$ app < input.txt
$ cat input.txt | app
Unfortunately, the application expects a filename as an argument..
$ app --input input.txt
and I can't easily change the source of input (eg. swap local file [as in example] for a result of a wget).
Is there an option to somehow trick this app?
If a solution requires a temporary file, it is necessary that this file is not left on the FS..
The app is actually an executable JAR; I'd like the trick to run on Win/Lin..