Printable Version of Topic

Click here to view this topic in its original format

PMView Pro Forums _ PMView - General Discussion _ Waiting For Script To End

Posted by: Yuri Dario Jun 25 2005, 01:14 PM

Hi,

I need to execute a script to convert a lot of images in different directories.

I can use a small rexx script to recurse the subdir tree, but this will start a pmview instance for every directory.

Is there a way to wait for script execution end?

or to add recursion directly to scripting.

TIA,

Yuri

Posted by: Peter Jun 27 2005, 06:19 PM

Yuri,

Are you running the scripts from the command line with REXX? I think that's the key. I don't see a problem with starting a new PMView instance for every directory since the GUI is not used when running scripts from the command line.

Thanks,

Posted by: Peter Jul 5 2005, 01:49 PM

Yuri,

OS/2 should keep PMView in memory, so disk-IO should not be a problem. If it is, then consider installing PMView on the local harddrive. Then it will definitely be cached in memory. (Or am I confusing things with how it works on Windows? I can't imagine that OS/2 would read it from disk every time...)

Also, by using wild cards you would only need to start the script once per directory.

Of course the REXX script should serialize the execution of PMView. Otherwise you risk running out of memory.

Thanks,

Posted by: Yuri Dario Jul 25 2005, 05:33 PM

Hi Peter,


sorry for late reply,


>Of course the REXX script should serialize the execution of PMView. Otherwise you risk >running out of memory.

I experimented a little bit more, but I'm unable to serialize it. How should I do this?

TIA,

Yuri

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)