From: Bjorn Gustavsson on
Hello Folks,

I happened into a annoying problem: at the matlab prompt I typed p_ and then hit tab for a quick expansion, matlab didn't expand anything but seemingly froze on the task and now spends 98% CPU time to do something but not finishing it. Since I'm working on a linux system I hope to be able to send the process a signal that interrupts this in a nice way and not make it coredump. Does anyone have a good signal to suggest? As I'd worked for some time there are results there I wouldn't want to loose with a direct kill...

Hoping for help,
Bjeorn
From: sscnekro on
> As I'd worked for some time there are results there I wouldn't want to loose with a direct kill...

Hey Bjeorn,

I'm with Wdws XP and ML ignores Ctrl+C when I want to stop execution, so the last time it happenned I just killed it, but I would like to learn some proper ways. I have no idea what does your "expansion operation" do, but just quickly typing in google e.g. interrupt+code+execution+Matlab+Linux
gives some hints.

I think I will need to adapt my problematic pieces of code so that they contain pause(0) at some lines, or that results are repeatedly saved to file so that not evth is lost. Good luck.