You could also use cfthread. Spawn the execution off into another
thread, then use the cfthread join action to make current processing
wait until the child thread is finished and rejoined. Put your logic
to check for file existence in the child thread where the execution of
the external app is. Then you have a timeout on the join so that it
won't wait around forever. Might be a bit cleaner separation.

Judah

On Wed, May 30, 2012 at 9:55 AM, Mary Jo Sminkey <[email protected]> wrote:
>
>>maybe use cfdirectory and look at 'dateLastModified' to wait for it to be
>>2~5 old (so you know it has finished writing to it)
>
> Well, not sure that has any benefit by itself versus just checking if the 
> file exists.
>
>
>>I would make a retry loop, say 5 times with a sleep in between
>>and break out if file found
>
> Okay, yeah this is more the piece I was looking for, a way to find the file 
> quickly if it is there, while also ensuring that the page won't hang waiting 
> for it if it doesn't complete. Yeah, this should work nicely, thanks!
>
> Mary Jo
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to