in reply to distribute render jobs

Do you know why you are having trouble launching the rendering process? Without some information on that it will be hard to help. Best would be if you could find a way to launch it from a DOS prompt. If you can do it from the command prompt then it is much easier to figure out what you need to do in Perl. If you cannot launch it from the command prompt then you should look for any other programs that can launch it. One guess would be that you would have some way to do it with OLE.

But really without further information we are at, "Well what should work doesn't. How do I do this?"

Replies are listed 'Best First'.
Re: Re (tilly) 1: distribute render jobs
by Anonymous Monk on Nov 16, 2000 at 06:47 UTC
    I believe Win32::Process doesn't work because the renderer (vmantra) was ported from *nix using the cygwin libraries. Perhaps something to do with passing arguments?

    Vmantra works from the command prompt with the following syntax:
    vmantra < fileToRender
    I discovered that I can launch it using backticks, system, or exec.
    From what I can see here, I guess I'm stuck with writing a client/server app that executes a BAT file to run the renderer.

    -dys

      No, just piggyback off of a database. :-)

      Seriously, have a relational database with transactions. When new jobs need to be done, add database entries for the needed work. Have a simple client process in a loop. It is connected to the database. At the start of the loop it tries to open a transaction and get work assigned to it. If it can it then does the work (ie one render) and marks it as done. If it cannot it sleeps for a while and tries again.

      You can have other processes that add needed renders, check to see whether anything is taking a suspiciously long time, etc.

        I really like the idea of a relational database. This could make my life easier for the next 2 months! :-)

        Thanks again for your ideas and help.

        -dys

        checkout http://www.dougstruthers.com