Related to a question I asked on Stack Overflow: Passing multiple lines of code to wsadmin.sh?.
I have, as a string, a few lines of input that I need to feed into a command. The command, however, only accepts a file full of input.
Is there some way I could store the lines in a temporary file or pipe which never actually gets written to disk and then feed that directly into the program?
How do I go about acquiring the pipe, feeding the input into it, passing that pipe to the command, and then getting rid of the pipe?