Re: [PD] netsend/netreceive with -nogui

2018-02-24 Thread Dan Wilcox

> On Feb 24, 2018, at 7:10 AM, pd-list-requ...@lists.iem.at wrote:
> 
> However, this does work:
> 
> $  killall pd
> $  PORTNUM=5012; pd -nogui -send ";start listen $PORTNUM" -open
> netreceive-patch.pd* & sleep 1 ; * pd -nogui -send ";start connect
> localhost $PORTNUM" -open netsend-patch.pd
> 
> I guess it's a timing issue?

Probably. When scripting Pd with other things that rely on setting up 
networking connections for OSC, I generally always include a few sleeps to make 
sure Pd has enough time to startup and start listening.



Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend/netreceive with -nogui

2018-02-23 Thread Peter P.
* Federico Camara Halac  [2018-02-23 18:43]:
> > So you should first run "killall pd" (and even killall -9 pd when it's
> > stuck), before running you command.
> >
> 
> Thanks! You are correct that a pd process with the netreceive is still
> running.
> (fun fact, for me at least: When running it from a new terminal, the new
> netsend started printing on the previous terminal)
> 
> Now I tried it on a different mac. I was on macOS 10.9, now on 10.11.6
> (same pd)
> 
> On first run, connection is established and patch works as expected, which
> is puzzling.
> 
> On second run (after effectively running killall pd, or killall -9 pd):
> 
>   connecting stream socket: Connection refused (61)

Fede, can you confirm that no other Pd instance is running before you
start your second instance?

I remember issues with the operating system leaving a port open and thus
reserving it for a longer while than the application (Pd in this case)
requests it. You could try to use a patch with a different port number
when you start it the second time and see if that works.

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend/netreceive with -nogui

2018-02-23 Thread Federico Camara Halac
> So you should first run "killall pd" (and even killall -9 pd when it's
> stuck), before running you command.
>

Thanks! You are correct that a pd process with the netreceive is still
running.
(fun fact, for me at least: When running it from a new terminal, the new
netsend started printing on the previous terminal)

Now I tried it on a different mac. I was on macOS 10.9, now on 10.11.6
(same pd)

On first run, connection is established and patch works as expected, which
is puzzling.

On second run (after effectively running killall pd, or killall -9 pd):

  connecting stream socket: Connection refused (61)
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend/netreceive with -nogui

2018-02-23 Thread Antoine Rousseau
>
>
> $ pd -nogui netreceive-patch.pd & pd -nogui netsend-patch.pd


this actually runs "pd -nogui netreceive-patch.pd" in background (because
of the '&'), then when you quit (with Ctrl+C ?) this instance keeps
running; check it with "ps -aux".

So you should first run "killall pd" (and even killall -9 pd when it's
stuck), before running you command.


Antoine Rousseau
  http://www.metalu.net  __
http://www.metaluachahuter.com/



2018-02-23 15:39 GMT+01:00 Fede :

> Thanks,
>
> That thread is on windows, and debian, and seemed solved for pd-0.48.0
> (https://lists.puredata.info/pipermail/pd-list/2017-10/120849.html)
>
> I’m on macOS:
>
> Pd-0.48.1 ("") compiled 13:16:11 Jan  7 2018
>
> I attach two patches that if opened the following way, won’t work on the
> first time:
>
> $ pd -nogui netreceive-patch.pd & pd -nogui netsend-patch.pd
>
> connecting to port 5004
> connecting stream socket: Connection refused (61)
>
> On the second run, it reads:
>
> bind: Address already in use (48)
>
>
>
>
> On Feb 23, 2018, at 3:21 PM, Peter P.  wrote:
>
> > See the mailing list archive perhaps?
> > https://lists.puredata.info/search?P=-nogui+AND+netsend&;
> DEFAULTOP=and&G=pd-list&SORT=0&HITSPERPAGE=100&DB=default&
> HITSPERPAGE=100&FMT=query&xP=Znogui%09Znetsend&xDB=default&
> xFILTERS=.%7E%7E0
> >
> > * Fede Camara Halac  [2018-02-23 14:40]:
> >> Hi all,
> >>
> >> Any reason why sometimes opening 2 instances with -nogui and
> communicating via netsend and netreceive would fail?
> >>
> >> I am careful enought to open the socket first  (netreceive) and then to
> connect. With gui, I have no problem. With -nogui, sometimes the network
> does not initialize.
> >>
> >> I realize I use Gem on one instance and not on the other, so a delay in
> load time might cause this, and a solution is to put netreceive in the
> patch with less loadtime, and delay (aka not the Gem patch)
> >>
> >> but other than that I am wondering if -nogui would affect communication
> between instances.
> >>
> >> Cheers,
> >>
> >> Fede
> >>
> >> fdch.github.io/tv
> >>
> >>
> >>
> >> ___
> >> 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
>
>
> ___
> 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


Re: [PD] netsend/netreceive with -nogui

2018-02-23 Thread Peter P.
See the mailing list archive perhaps?
https://lists.puredata.info/search?P=-nogui+AND+netsend&DEFAULTOP=and&G=pd-list&SORT=0&HITSPERPAGE=100&DB=default&HITSPERPAGE=100&FMT=query&xP=Znogui%09Znetsend&xDB=default&xFILTERS=.%7E%7E0

* Fede Camara Halac  [2018-02-23 14:40]:
> Hi all,
> 
> Any reason why sometimes opening 2 instances with -nogui and communicating 
> via netsend and netreceive would fail?
> 
> I am careful enought to open the socket first  (netreceive) and then to 
> connect. With gui, I have no problem. With -nogui, sometimes the network does 
> not initialize.
> 
> I realize I use Gem on one instance and not on the other, so a delay in load 
> time might cause this, and a solution is to put netreceive in the patch with 
> less loadtime, and delay (aka not the Gem patch)
> 
> but other than that I am wondering if -nogui would affect communication 
> between instances.
> 
> Cheers,
> 
> Fede
> 
> fdch.github.io/tv
> 
> 
> 
> ___
> 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


[PD] netsend/netreceive with -nogui

2018-02-23 Thread Fede Camara Halac
Hi all,

Any reason why sometimes opening 2 instances with -nogui and communicating via 
netsend and netreceive would fail?

I am careful enought to open the socket first  (netreceive) and then to 
connect. With gui, I have no problem. With -nogui, sometimes the network does 
not initialize.

I realize I use Gem on one instance and not on the other, so a delay in load 
time might cause this, and a solution is to put netreceive in the patch with 
less loadtime, and delay (aka not the Gem patch)

but other than that I am wondering if -nogui would affect communication between 
instances.

Cheers,

Fede

fdch.github.io/tv



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list