SCIENTIFIC-LINUX-USERS Archives

February 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Fri, 27 Feb 2015 17:14:58 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (69 lines)
On 02/27/2015 05:07 PM, Brad Cable wrote:
> If each individual call to pdfstudio opens a new tab/window/whatever in
> pdfstudio (which it sounds like it does based on the crazy script
> ToddAndMargo says works), this should definitely work.
>
> -Brad
>

It does.  Much more elegant than what I came up with

>
> On 02/27/2015 07:05 PM, John Lauro wrote:
>> Oops, I meant...
>> find  -maxdepth 1 -iname \*.pdf -print0 | while read -d '' -r file ; do
>>   /opt/pdfstudio9/pdfstudio9 "$file" & done
>>
>> but you probably caught that....
>>
>> ----- Original Message -----
>>> From: "John Lauro" <[log in to unmask]>
>>> To: "ToddAndMargo" <[log in to unmask]>
>>> Cc: "Brad Cable" <[log in to unmask]>, "Scientific Linux Users"
>>> <[log in to unmask]>
>>> Sent: Friday, February 27, 2015 8:03:50 PM
>>> Subject: Re: need release command for find -exec
>>>
>>> find / -type f -print0 | while read -d '' -r file ; do
>>> /opt/pdfstudio9/pdfstudio9 "$file" & done
>>>
>>> should work...
>>>
>>> ----- Original Message -----
>>>> From: "ToddAndMargo" <[log in to unmask]>
>>>> To: "Brad Cable" <[log in to unmask]>, "Scientific Linux Users"
>>>> <[log in to unmask]>
>>>> Sent: Friday, February 27, 2015 7:52:03 PM
>>>> Subject: Re: need release command for find -exec
>>>>
>>>>>> 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
>>>>>>
>>>>>
>>>>
>>>> --
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> Computers are like air conditioners.
>>>> They malfunction when you open windows
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2