POV-Ray : Newsgroups : povray.general : POV-Ray & Databases : Re: POV-Ray & Databases Server Time
2 Aug 2024 10:24:59 EDT (-0400)
  Re: POV-Ray & Databases  
From: Mark Ulrich
Date: 4 Nov 2004 16:30:01
Message: <web.418a9f42e4dee74da3009e2a0@news.povray.org>
"Tom Melly" <pov### [at] tomandlucouk> wrote:

> <snip>
>
> Could be fun - can someone remind me, can pov construct and execute external
> commands?

Hi,

I don` t know.

but you could write a file (command.txt) with povray, with just one line:

myprogram.exe

-----------
Then you run a small programm in wxbasic or whatever:

//--------------- pseudocode

while(1)
 fopen command.txt as #1
  line input thecommand
  if right(thecommand,3) = "exe" then
   shell(thecommand) //-- execute the line as an external program
  end
 fclose #1
 deletefile("command.txt") //-- delete file to avoid repeated execution
 sleep(5)
end while

//-- end ---------- pseudocode

Greets, Mark


Post a reply to this message

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