Subject: | |
From: | |
Reply To: | |
Date: | Fri, 27 Feb 2015 18:45:23 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
"-exec" will always wait for the command to end, and that's entirely up
to pdfstudio to do. There could be an option to pdfstudio to release
and fork off, but probably not.
A better solution is to just generate the large list of files and pass
them on the command line to pdfstudio all in one pdfstudio process:
/opt/pdfstudio9/pdfstudio9 $(find -maxdepth 1 -iname \*.pdf)
This may or may not work depending on if pdfstudio knows to read
multiple files on the command line. This method is the same as executing:
/opt/pdfstudio9/pdfstudio9 file1.pdf file2.pdf file3.pdf
Assuming it supports the above, it should work. You might have to look
at pdfstudio's command line arguments, though.
-Brad
On 02/27/2015 06:38 PM, ToddAndMargo wrote:
> Hi All,
>
> I am trying to get PDF Studio to open multiple pdf's
> from a script. But PDF Studio will only accept one file
> name on its command line. But you can have multiple
> PDF Studios open, so I tried
>
> find -maxdepth 1 -iname \*.pdf -exec /opt/pdfstudio9/pdfstudio9 {} \;
>
> But you have to close the first instance to get the second
> to open, etc..
>
> I have tried adding "&" to the end, but no syntax joy.
>
> How to I get "-exec" to run and release, so "find" can go
> on to the next instance?
>
> Many thanks,
> -T
>
|
|
|