I have a script that needs to launch a program in order for the program to create and populate some folders. The program only needs to run briefly and then close, before the script continues.
However when the program is killed, the script does not continue. How can I do this?
printf "before"
(timeout -sHUP 3s firefox)
printf "after"
I thought I was launching the program in a subshell but i am not sure if this is the case.