|
hallo!
following problem:
I call the script with: 'script A B A' my problem: following parts should be executed: run X run X run Y run X
BUT following parts are executed: run X run X run X
if $1 is 'B' in the main while-loop, 'run X' will be executed, but 'run Y' won't!
this depends on the $command ($command is a script, that also executes a binary!)
so my question is: WHY??? - how to execute $command, so the script will return from 'run X' and continue with 'run Y'???
if $command is a 'nice' command, output is as expected! BUT if $command is a 'bad' command, I don't understand, why 'run Y' is never called!
thx for ANY hints!
|