[PD] Execute command from Pd

Jack jack at rybn.org
Mon May 29 11:05:03 CEST 2017


Something like this ? :

[netreceive -u 5678]
|
[print]

You can also add 2>&1 if you want to redirect error. This could give
something like :

$ ls 2>&1 | pdsend 5678 localhost udp

or

$ output=$(ls 2>&1) ; echo -e "$?\n$output" | pdsend 5678 127.0.0.1 udp

The first line will give you the return code of your command and next
lines the stdout or stderr (redirected in stdout).
++

Jack



Le 28/05/2017 à 20:06, oliver a écrit :
> cyrille henry wrote:
>> 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.
> 
> thanks !
> but how would this work the other way round ?
> 
> best
> 
> oliver
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list