How to programmatically kill a hung CC CLI windows batch

Feel free to ask any question here
Post Reply
Sivaranjani
Posts: 3
Joined: Mon Aug 16, 2021 10:04 am

How to programmatically kill a hung CC CLI windows batch

Post by Sivaranjani »

Hi,

I am running a windows batch script on hundreds of 3D elements, such that for each 3D element, I am calling CloudCompare.exe through CLI and sample it, find C2C distance to another cloud and so on. Sometimes, it happens that for some elements, the C2C Distance calculation is being computed for a long time (sometimes even hours), right now I am killing such process through Ctrl+C, and then I type 'N' (the windows cmd prompts whether to kill the entire batch process and I specify 'N') to continue ahead with the batch process. I am finding a way to programmatically perform the same, like if a CloudCompare operation takes longer than few mins, I kill the same and proceed for next line of code from the batch script. I am a newbie to CloudCompare CLI and these ways of batch scripting, so I might be missing something evident, Please help me with your ideas and available solutions. Thank you.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How to programmatically kill a hung CC CLI windows batch

Post by daniel »

Ah, I can't help on the scripting part, but I guess the very long computation time comes from the fact that the two clouds are very far apart. Using a 'maximum distance' cloud help reducing a lot the computation time (C2C -MAX_DIST XXX).
Daniel, CloudCompare admin
Sivaranjani
Posts: 3
Joined: Mon Aug 16, 2021 10:04 am

Re: How to programmatically kill a hung CC CLI windows batch

Post by Sivaranjani »

Thanks.
Post Reply