Yes, it is good to add a "sleep 1" at the end of the while loop. ++
Jack
Le 03/05/2018 à 12:59, Roman Haefeli a écrit :
On Thu, 2018-05-03 at 11:56 +0200, Jack wrote:
If you have several instances of Pd, it is also doable to do something like :
pd -open yourpatch1.pd & PID1=$! pd -open yourpatch2.pd & PID2=$!
while true do if [ ! -d /proc/$PID1 ] then pd -open yourpatch1.pd & PID1=$! fi if [ ! -d /proc/$PID2 ] then pd -open yourpatch2.pd & PID2=$! fi done
If I'm not mistaken, this hogs the CPU as it will run as many iterations per second as possible. I think a 'sleep 1' would already help.
Roman
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list