I run MATLAB (command line version) from a shell script, and I would like it to save the shell behavior, if it is clicked Ctrl, Cit ends. But instead, he wants to maintain control of the terminal, and I (or my poor users after me) should dial quit(1)to get him to go out and tell the shell that it failed.
You can't intercept Ctrl- Cwith the try/ catch... block of any other ideas? Anything I could do on the shell side to intercept keystrokes before they hit MATLAB?
onCleanupseems like an option, but then I have to turn the entire script function into a function (this is already a dynamically generated thing try/ catchin a Makefile). But if this is the only thing that works, then I will do it ...
source
share