if the comand you execute is somthing like :
ls | pdsend 5678 localhost udp
then you can get the result of the command in pd event if the object used have no feedback.
cheers
c
Le 25/05/2017 à 09:38, Roman Haefeli a écrit :
> 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
> individually.
>
> I'm also happy to explore ideas that think outside the box as long as
> the solution can be built into a Deken package.
>
> Thanks,
> Roman
>
>
> [1]
https://ccrma.stanford.edu/groups/soundwire/software/jacktrip/
>
>
>
> _______________________________________________
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
>
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list