I have a bash script that I am modifying. The script now also executes a binary. Say something like this
mybin arg1 arg1 The binary takes about 5 minutes to execute and when I execute it from bash directly, it does show the intermediate outputs. When I add it to my script as
`mybin arg1 arg1`
I get the output in the end and bash thinks the output is a command and tries to execute it. So I want to solve 2 things
- Show the intermediate output on the screen when I execute the binary from the bash script.
- And the output must not be treated to be a command for processing, just regular output
$(...)for command substitution serves the same purpose as backticks but is more readable. (oldengineer)-->