I run the bash script with
exec "/c/program.exe" && echo "ok" The script starts the program and freezes - i.e. stops running further.
How can I run the program and continue the execution of the script?
Decision
exec "/c/program.exe" & echo "ok" (exec "/c/program.exe" && echo "ok") & , then "ok" will be in the console after program.exe has run (if it returns error code == 0) - Zugrthat's about where and what you can stick:
echo 'before start' ( exec "/c/program.exe" && echo "finished Success" || echo "finished Failure" echo "after finish any case" ) & echo 'after start' Source: https://ru.stackoverflow.com/questions/642408/
All Articles