[ESS] How to kill a SAS batch job

Sparapani, Rodney rsparapa at mcw.edu
Sat Jul 11 22:50:49 CEST 2009

Hi Daniel:

I didn't say no way.  I said that it wouldn't be easy.  And why do you 
suspect it is %1 that needs to be killed?  I sometimes have 5 to 10
jobs running and I don't necessarily want to kill %1.  I don't see how
you can distinguish which you want to kill any easier than just
going to the *shell* buffer and doing it by hand.


From: Daniel Muenz [dmuenz at sdac.harvard.edu]
Sent: Friday, July 10, 2009 3:38 PM
To: Sparapani, Rodney
Cc: ess-help at stat.math.ethz.ch; ess-help-bounces at stat.math.ethz.ch
Subject: Re: [ESS] How to kill a SAS batch job

Hi Rodney, thanks for your response.  So, my knowledge of elisp is quite
rudimentary, but I'm wondering, is there no way to programmatically submit
the command "kill %1" to the *shell* buffer?  Ideally, the program would
first check that "%1" exists and refers to a SAS job, say by first
submitting the "jobs" command to the *shell* and then parsing the output.
Is any of this possible?


  From:       Rodney Sparapani <rsparapa at mcw.edu>

  To:         ess-help at stat.math.ethz.ch

  Date:       07/10/2009 03:39 PM

  Subject:    Re: [ESS] How to kill a SAS batch job

Daniel Muenz wrote:
> Hi all, I have two questions related to killing SAS batch jobs which were
> submitted with ESS.
> 1.  Is there an ESS command or some easy way within Emacs to kill a SAS
> batch job?  Say a program I submitted with ESS has been running longer
> I think it should and I just want to kill it, what's the easiest way to
> this?  Just as I have F3 bound to submitting the code, it would be great
> I could have some other key bound to killing it.

No there isn't and I don't see an easy way to do such a thing.  Just go
to the *shell* buffer and kill it.  That's why they are submitted
through the *shell* buffer; so that you can interact with them when

> 2.  When I exit Emacs, is there a way to automatically kill all running
> jobs which were submitted through ESS?  If I have another copy of Emacs
> open with its own submitted SAS jobs, I don't want those to be affected,
> and similarly if I've got an xterm window open with SAS jobs running.

No.  In fact, the opposite is what is usually wanted since some SAS
jobs can take days or weeks to finish.

> Thanks very much for all your help -- this list has been a great
> Daniel

ESS-help at stat.math.ethz.ch mailing list

More information about the ESS-help mailing list