[PD] Control external command from Pd

Roman Haefeli reduzent at gmail.com
Thu Dec 1 11:52:29 CET 2016


On Thu, 2016-12-01 at 11:37 +0100, Jack wrote:
> Le 01/12/2016 à 11:30, Roman Haefeli a écrit :
> > 
> > On Thu, 2016-12-01 at 11:09 +0100, Jack wrote:
> > > 
> > > Hello Roman,
> > > 
> > > Did you try :
> > > 
> > > [command & echo $!(
> > > > 
> > > > 
> > > > 
> > > [shell]
> > > 
> > > It will return the pid of 'command'.
> > Yes, you're right: It's not even necessary to put that into an
> > extra
> > script (I thought I had to because of the dollar sign).
> > 
> > However, the problem remains: When I send 'command' to background,
> > [shell] won't output its stdout to the left outlet anymore.
> Hmm, weird, did you get something with ? :
> (start Pd from a directory where there are files and directories).
> 
> [ls & echo $!(
> > 
> > 
> [shell]

Yes, that works for me, too. But it's not a good example, since ls is a
one shot command and exits immediately.

Try this:

[ping netpd.org & echo $!(

The actual command I'm interested to work with is 'jacktrip'.

Roman
-------------- 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/20161201/c9c69383/attachment.sig>


More information about the Pd-list mailing list