in reply to Re^7: Spinning cursor while waiting for search/copy process to be finished
in thread Spinning cursor while waiting for search/copy process to be finished

Great! I have already learned so much, thank you! It works just as I need, I only changed

kill 1, $pid;

to

kill 9, $pid;

because of

Terminating on signal SIGHUP(1)

message.