I have a program running on linux
This program take its input from the stdin
So I can launch it with input file in this way
myprogram < file
in order to avoid typing input to the program
Now I want that the program take the input from a command output. something like that
myprogram < anycommand
but this does not work because it's expecting a file and not a command.
How I can make it work? Are there a shell syntax to make it work?
Note: I can not use pipe like anycommand | myprogram
anycmd| myprog
? That is a core pattern of all Unix-like programs. Good luck. – Photoflash