I landed on my bash script running the below code, and it runs both for the test code I sent in the previous reply and for the actual command I want to run. However, the command still does not seem to run correctly, as the results of its run can't be seen at all.
Code: eval "<cmd and params>" tPID=$(pgrep <cmd without params>) # using sed like this after ps instead of the --pid= option because the DUT doesn't support that while [ -n "$(ps | sed "/${tPID}/!d; s/ //g; /sed/d; /${tPID}/q")" ] do sleep 0.1 done
If there are any clues or ideas that may be of use, then that would be much appreciated, thank you.
Best regards, Michael