[ESS] How to kill a SAS batch job

Daniel Muenz dmuenz at sdac.harvard.edu
Fri Jul 10 22:38:41 CEST 2009


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?

Thanks,
Daniel,


                                                                                                                    
  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
than
> I think it should and I just want to kill it, what's the easiest way to
do
> this?  Just as I have F3 bound to submitting the code, it would be great
if
> 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
necessary.

> 2.  When I exit Emacs, is there a way to automatically kill all running
SAS
> 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
resource,
> Daniel
>

______________________________________________
ESS-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list