[PD] Execute command from Pd

Roman Haefeli reduzent at gmail.com
Thu May 25 09:38:25 CEST 2017

Hey all

I'm looking for the best available solution to execute commands from
Pd. Ideally, the object would launch the process independently from Pd
in order to avoid any lock-ups. Then, it'd be nice if there would be
interfaces to access stdout, stderr and the exit code (probably an
outlet for each). Third, it should allow to send signals to the running
process. I found [moolib/popen], [motex/system] and [ggee/shell] and
none of them fits for what I intend to do. [popen] and [system] don't
give any feedback at all and probably are meant to run one-shot
commands only. [shell] comes closest, it has an outlet for stdout and
one for the exit code. However, on macOS only the the second outlet
works (and gives correct exit codes) while the left outlet never
outputs anything. On Linux, the left outlet outputs stdout, while the
right outlet always gives 0 regardless of actual exit code. Ideally, I
need something that works on macOS and Linux the same way.

I'd like to be able to control a handful of jacktrip[1] instances from
Pd. I need to be able to evaluate their stdout to get feedback about
their connection status. Also, I need to be able to kill them

I'm also happy to explore ideas that think outside the box as long as
the solution can be built into a Deken package.


[1] https://ccrma.stanford.edu/groups/soundwire/software/jacktrip/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170525/20324f79/attachment.sig>

More information about the Pd-list mailing list