I can not find the answer to my problem. I need to be able to execute a shell / bash script command after the current one has been output using ^ C.
In other words: I have a script that runs, and right after I ^ C from it, I want another script or command to run right after. How to achieve this?
I tried ./first.sh; echo something ./first.sh; echo something with no luck.
I could try running simultaneous scripts where I could wait / listen for another to finish, and then execute the cleanup commands and exit. But then I would need to run them in one team.
What would be the most appropriate approach to this problem?
Thanks,
EDIT: I think I have it ... From the first script, I can run another with and at the end so that it goes to the background. It seems to work with ^ C output from the first (second continuous to work). Any suggestions for better solutions?
user1444046
source share