[PD] watchdog
Roman Haefeli
reduzent at gmail.com
Thu May 3 12:59:20 CEST 2018
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180503/11fb04ca/attachment.sig>
More information about the Pd-list
mailing list