<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>maybe the "shell" object </p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)">Patrick Pagano B.S, M.F.A</span></p>
<p><i><span style="font-size:9pt; color:rgb(0,111,201); background-color:rgb(255,255,255)">Assistant Professor in Residence</span></i></p>
<p><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:9pt; background-color:rgb(0,0,255)"><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)">Digital Media & Design</span><span style="color:rgb(255,255,255)"><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)"></span><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)"></span></span></span><br>
</i></p>
<p><i><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:9pt; background-color:rgb(0,0,255)"><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)">Web & Interactive Technologies</span></span></i></p>
<p><i><span style="font-size:9pt; color:rgb(0,111,201); background-color:rgb(255,255,255)">University of Connecticut, Stamford</span></i></p>
<p><i></i><span style="font-size:9pt"><i><span style="background-color:rgb(0,0,255)"><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)">(352)-226-2016</span><span style="background-color:rgb(255,255,255)"><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)"></span><span style="color:rgb(0,111,201); background-color:rgb(255,255,255)"></span></span></span></i></span></p>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Pd-list <pd-list-bounces@lists.iem.at> on behalf of cyrille henry <ch@chnry.net><br>
<b>Sent:</b> Thursday, May 25, 2017 3:50:10 AM<br>
<b>To:</b> pd-list@lists.iem.at<br>
<b>Subject:</b> Re: [PD] Execute command from Pd</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">if the comand you execute is somthing like :<br>
ls | pdsend 5678 localhost udp<br>
<br>
then you can get the result of the command in pd event if the object used have no feedback.<br>
<br>
cheers<br>
c<br>
<br>
<br>
<br>
Le 25/05/2017 à 09:38, Roman Haefeli a écrit :<br>
> Hey all<br>
> <br>
> I'm looking for the best available solution to execute commands from<br>
> Pd. Ideally, the object would launch the process independently from Pd<br>
> in order to avoid any lock-ups. Then, it'd be nice if there would be<br>
> interfaces to access stdout, stderr and the exit code (probably an<br>
> outlet for each). Third, it should allow to send signals to the running<br>
> process. I found [moolib/popen], [motex/system] and [ggee/shell] and<br>
> none of them fits for what I intend to do. [popen] and [system] don't<br>
> give any feedback at all and probably are meant to run one-shot<br>
> commands only. [shell] comes closest, it has an outlet for stdout and<br>
> one for the exit code. However, on macOS only the the second outlet<br>
> works (and gives correct exit codes) while the left outlet never<br>
> outputs anything. On Linux, the left outlet outputs stdout, while the<br>
> right outlet always gives 0 regardless of actual exit code. Ideally, I<br>
> need something that works on macOS and Linux the same way.<br>
> <br>
> I'd like to be able to control a handful of jacktrip[1] instances from<br>
> Pd. I need to be able to evaluate their stdout to get feedback about<br>
> their connection status. Also, I need to be able to kill them<br>
> individually.<br>
> <br>
> I'm also happy to explore ideas that think outside the box as long as<br>
> the solution can be built into a Deken package.<br>
> <br>
> Thanks,<br>
> Roman<br>
> <br>
> <br>
> [1] <a href="https://ccrma.stanford.edu/groups/soundwire/software/jacktrip/">https://ccrma.stanford.edu/groups/soundwire/software/jacktrip/</a><br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Pd-list@lists.iem.at mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
<br>
_______________________________________________<br>
Pd-list@lists.iem.at mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
</div>
</span></font>
</body>
</html>