Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32867
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Martin Gregorie <martin@address-in-sig.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: interruptable process? |
| Date | Fri, 9 Oct 2015 23:13:26 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 32 |
| Message-ID | <mv9hml$opi$1@dont-email.me> (permalink) |
| References | <2b8f6bec-f879-4c13-97c5-60555f9a9ccb@googlegroups.com> <mv5s88$phe$1@dont-email.me> <1dcc94ee-d9c8-49f0-80b7-64b99c5fb102@googlegroups.com> <mv6cf4$rrg$1@dont-email.me> <d1ec1e2e-1536-402a-b48c-04effc11dd3a@googlegroups.com> <mv6fmh$99h$1@dont-email.me> <3aad161f-2921-4511-9d23-d177078d034e@googlegroups.com> <mv6j5h$n84$1@dont-email.me> <mv6l4j$uq9$1@dont-email.me> <mv74cs$hd4$1@dont-email.me> <mv8244$ssp$1@dont-email.me> <bc418cf4-d955-44e2-92cd-3e4629d4f54f@googlegroups.com> <mv8pro$sud$1@news.albasani.net> <mv8q2g$tpq$1@news.albasani.net> <a10fb6ce-dfd1-4186-a432-85cdadc56d02@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 9 Oct 2015 23:13:26 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="25394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q/RR80e+UMHemlSMwgorTpYYswZH9htg=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:CIiaEpwNU4nnRNgZo0goksYIuDE= |
| Xref | csiph.com comp.lang.java.programmer:32867 |
Show key headers only | View raw
On Fri, 09 Oct 2015 10:31:56 -0700, Eric Douglas wrote: > On Friday, October 9, 2015 at 12:30:19 PM UTC-4, Jan Burse wrote: >> http://docs.oracle.com/javase/7/docs/api/java/lang/Process.html destroy >> public abstract void destroy() >> Kills the subprocess. The subprocess represented by this Process object >> is forcibly terminated. > > I tried the destroy method, it didn't work. The java ProcessBuilder > starts command Blender.exe with a -P that passes it a python script. > This line in the script apparently starts a second Blender.exe which > actually does the rendering. Only the first Blender task is destroyed. > bpy.ops.render.render( write_still=True ) > > If this Java process is started from a cmd.exe window and we press ctrl > + break on that window it does terminate the render. This is what I > hoped to emulate through code. This ctrl + break command can only be > executed at the server's physical console. We cannot even sign in > remotely to this server, it breaks the Blender program. Does it work any better if you use Runtime.exec() rather than ProcessBuilder.start()? I'm asking because Runtime.exec() looks more like the C execl*() set of functions, which give you rather more control over the child process than the C system() function does. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-08 05:27 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 09:50 -0400
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-08 07:39 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 14:27 -0400
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-08 11:58 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 15:10 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 15:22 -0400
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-08 12:40 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 16:21 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 16:55 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-08 21:15 -0400
Re: interruptable process? Martin Gregorie <martin@address-in-sig.invalid> - 2015-10-09 09:41 +0000
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 05:12 -0700
Re: interruptable process? Martin Gregorie <martin@address-in-sig.invalid> - 2015-10-09 13:52 +0000
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 09:08 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 12:43 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 13:23 -0400
Re: interruptable process? Jan Burse <janburse@fastmail.fm> - 2015-10-09 18:26 +0200
Re: interruptable process? Jan Burse <janburse@fastmail.fm> - 2015-10-09 18:30 +0200
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 10:31 -0700
Re: interruptable process? Martin Gregorie <martin@address-in-sig.invalid> - 2015-10-09 23:13 +0000
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-12 05:09 -0700
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 10:25 -0700
Re: interruptable process? Jan Burse <janburse@fastmail.fm> - 2015-10-09 20:04 +0200
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 11:23 -0700
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 11:30 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 08:38 -0400
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 05:18 -0700
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 08:46 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 08:59 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 11:06 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 13:54 -0400
Re: interruptable process? Jeff Higgins <jeff@invalid.invalid> - 2015-10-09 14:59 -0400
Re: interruptable process? Eric Douglas <e.d.programmer@gmail.com> - 2015-10-09 12:13 -0700
csiph-web