One way you could get a shell script to execute on the termination of a program, would be by calling that program through a script itself. If this is done the shell is idle while the program executes, then continues normal flow when the program ends. Using a shell as this kind of wrapper would allow you to write different flows based on the exit status of the program (see echo $?) -Edit: Kind of a hack I know, but it's the only way I could think to do something like this-
Pop ups on the other hand, I'm not sure how to do through bash(?)
|