Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a kernel named A in one notebook and other notebook with kernel B, how can I kill B from A?

share|improve this question
up vote 6 down vote accepted

From notebook A execute this:

nb = CreateDocument[{ExpressionCell[Defer[Quit[]], "Input", 
    Evaluator -> "B"]}]; SelectionMove[nb, All, Notebook]
SelectionEvaluate[nb]
NotebookClose[nb]
share|improve this answer
    
Thanks, this works. – Tom Wellington Oct 23 '12 at 19:22
    
@M.R. , is it possible to use a similar trick when running codes in 2 distinct kernels A and B, using 2 distinct Linux terminals? – fcpenha Jul 1 '13 at 17:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.