On 07/04/2020 00.35, Istvan Gabor wrote:
On Mon, 6 Apr 2020 17:19:58 -0400, Anton Aylward wrote:
On 06/04/2020 07:18, Istvan Gabor wrote:
Hello:
I have a program that can send its output to a script.
Now that's an ambiguous phrasing if ever I met one!
Looking it at again, I guess you're right. That's because I did know what terms to use to describe it. I could have written my example like this:
Program calls myscript.sh -option -option
An myscript.sh runs as:
myscript.sh -option -option <the-data-provided-by-the-program>
Bu this . . . . . . . . . . . ********************************** Is not clear at all. You do not say how or where is that data. Now, when you say that myscript.sh: #!/bin/sh cat >file works, it means that the programs provides the data to the script in its standard input "file". And that crucial information you did not say. Now, it is important to know if the program expects the data again in the standard output stream of the script or not. In other words, the program pipes the output to the script it calls, and maybe expects it back. Or not. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)