POV-Ray : Newsgroups : povray.general : Exit when done : Re: Exit when done Server Time
31 Jul 2024 08:23:21 EDT (-0400)
  Re: Exit when done  
From: Manuel Mata
Date: 27 Jul 2007 07:30:02
Message: <web.46a9d68fe160b8e1d141b3240@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> wrote:
> You should be able to set up POV to /EXIT
>
> However, in DOS you can kill POV with
> taskkill /f /im pvengine.exe /t
> I think in Java you need to spawn a runtime
> thread to make a system call, then monitor
> it for completion, and kill the thread when it's
> done.

Right in Java i do something like:

Runtime r = Runtime.getRuntime() // gets the current runtime
Process p = r.exec("pvengine -isample.pov -osample.png"); // Execute pov ray
and return the associated process
p.waitFor(); // Waits the current thread until povray finished

But Povray renders the image and is still open. So the thread is still
stopped at p.waitFor() When i close the window manually the program
continues.

I think the best is to set up the "Exit when done" option but still didnt
had time to try it.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.