Linux shell kill command while still running based on output

view full story

http://stackoverflow.com – I have a set of C++ projects in Code::Blocks and a script that builds all of them. The script looks as following: codeblocks --build --target="release32" project1.cbp codeblocks --build --target="release32" project2.cbp codeblocks --build --target="release32" project3.cbp ... Sometimes when building one of the projects, Code::Blocks fails to finish the process with an error: *** glibc detected *** codeblocks: corrupted double-linked list. This has nothing to do with the build being failed, this is just a bug in codeblocks, see here: https://bugs.launchpad.net/ubuntu/+source/codeblocks/+bug/ (HowTos)