How to programmatically kill a hung CC CLI windows batch
Posted: Sat Nov 27, 2021 4:24 pm
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.
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.