Re: [PD] get dir of current pd

2013-08-02 Thread Jonathan Wilkes
On 07/30/2013 07:05 PM, Max wrote: Am 30.07.2013 um 23:32 schrieb Jonathan Wilkes : Max- Are you experiencing dropouts from the subprocess stalling, or are you saying you're trying to avoid the possibility of dropouts. If it's the latter, then I'm having a hard time figuring out how two Pds c

Re: [PD] get dir of current pd

2013-08-01 Thread Dan Wilcox
Probably :P I opened an issue. Thanks. On Aug 1, 2013, at 11:26 PM, pd-list-requ...@iem.at wrote: > From: Jonathan Wilkes > Subject: Re: [PD] get dir of current pd > Date: August 1, 2013 11:33:19 PM EDT > To: pd-list@iem.at > > > On 07/30/2013 03:40 PM, Dan Wilcox wrote

Re: [PD] get dir of current pd

2013-08-01 Thread Jonathan Wilkes
On Jul 30, 2013, at 3:03 PM, pd-list-requ...@iem.at <mailto:pd-list-requ...@iem.at> wrote: *From:*Jonathan Wilkes mailto:jancs...@yahoo.com>> *Subject:**Re: [PD] get dir of current pd* *Date:*July 30, 2013 2:43:24 PM EDT *To:*pd-list@iem.at <mailto:pd-list@iem.at> On 07/30/

Re: [PD] get dir of current pd

2013-07-30 Thread Simon Wise
On 30/07/13 22:04, yvan volochine wrote: I'd definitely go for the shell script solution.. although after some quick tests I didn't manage to run 2 different pd instances from one shell script... pd & is your friend here, to run the process in the background Simon _

Re: [PD] get dir of current pd

2013-07-30 Thread Jonathan Wilkes
On 07/30/2013 07:05 PM, Max wrote: Am 30.07.2013 um 23:32 schrieb Jonathan Wilkes : Max- Are you experiencing dropouts from the subprocess stalling, or are you saying you're trying to avoid the possibility of dropouts. If it's the latter, then I'm having a hard time figuring out how two Pds c

Re: [PD] get dir of current pd

2013-07-30 Thread Max
Am 30.07.2013 um 23:32 schrieb Jonathan Wilkes : > Max- Are you experiencing dropouts from the subprocess stalling, or are you > saying you're trying to avoid the possibility of dropouts. If it's the > latter, then I'm having a hard time figuring out how two Pds connected > through netsend woul

Re: [PD] get dir of current pd

2013-07-30 Thread Jonathan Wilkes
having a hard time figuring out how two Pds connected through netsend would avoid dropouts. Also, what causes the freezes? -Jonathan On Jul 30, 2013, at 3:03 PM, pd-list-requ...@iem.at <mailto:pd-list-requ...@iem.at> wrote: *From:*Jonathan Wilkes mailto:jancs...@yahoo.com>> *

Re: [PD] get dir of current pd

2013-07-30 Thread Dan Wilcox
Here's how we do it in OpenFrameworks: https://github.com/openframeworks/openFrameworks/blob/develop/libs/openFrameworks/utils/ofFileUtils.cpp#L1400 On Jul 30, 2013, at 3:03 PM, pd-list-requ...@iem.at wrote: > From: Jonathan Wilkes > Subject: Re: [PD] get dir of current pd >

Re: [PD] get dir of current pd

2013-07-30 Thread yvan volochine
On 30/07/13 20:43, Jonathan Wilkes wrote: I don't think /proc/self/exe is a requirement of all Linux flavors, and I don't know what the BSD OSes do, or OSX. So I'm reluctant to add this to [pdinfo]. I'd say don't bother adding anything that's not really needed (which does seem the case here I

Re: [PD] get dir of current pd

2013-07-30 Thread Jonathan Wilkes
On 07/30/2013 07:48 AM, yvan volochine wrote: On 30/07/13 08:41, Jonathan Wilkes wrote: Ok, I figured out how to do this and how do you do? In GNU/Linux on some _distros_ you can check the symlink /proc/self/exe If you do a readink from within C in Pd you'll get the absolute path and name o

Re: [PD] get dir of current pd

2013-07-30 Thread Max
pwd to a [ggee/shell] results always in / (at least on OS X) Am 18.07.2013 um 20:44 schrieb Iain Mott : > there's the "shell" external - to which you can send a "pwd" message - > but perhaps this only works on linux, maybe mac? > Iain > > > > > Em Wed, 2013-07-17 às 06:44 -0700, Max escr

Re: [PD] get dir of current pd

2013-07-30 Thread yvan volochine
On 30/07/13 15:30, Max wrote: If you are using two separate instances, then you either need to start them manually, create a shell script that does it, or (and this is finally why I was curious to know if there is a way from within Pd to know the path of the binary) launch the second instance

Re: [PD] get dir of current pd

2013-07-30 Thread Max
Am 30.07.2013 um 13:47 schrieb yvan volochine : > On 17/07/13 15:44, Max wrote: >> is there something like [ggee/getdir] but for getting the path of the >> currently running Pd binary? > > you mind explaining why you would need that? off cause: In an attempt to divide two processes in Pd I am cu

Re: [PD] get dir of current pd

2013-07-30 Thread yvan volochine
On 30/07/13 08:41, Jonathan Wilkes wrote: Ok, I figured out how to do this and how do you do? y -- http://yvanvolochine.com http://soundcloud.com/yvanvolochine http://soundcloud.com/elgusanorojo http://github.com/gusano http://vimeo.com/yv ___ Pd-l

Re: [PD] get dir of current pd

2013-07-30 Thread yvan volochine
On 17/07/13 15:44, Max wrote: is there something like [ggee/getdir] but for getting the path of the currently running Pd binary? you mind explaining why you would need that? maybe there's an alternative way to achieve what you want? y -- http://yvanvolochine.com http://soundcloud.com/yvanvo

Re: [PD] get dir of current pd

2013-07-29 Thread Jonathan Wilkes
On 07/20/2013 11:13 AM, Jonathan Wilkes wrote: On 07/18/2013 02:16 PM, Jonathan Wilkes wrote: On 07/17/2013 09:44 AM, Max wrote: is there something like [ggee/getdir] but for getting the path of the currently running Pd binary? Seems like I saw this somewhere, but I can't remember where. I'l

Re: [PD] get dir of current pd

2013-07-20 Thread Jonathan Wilkes
On 07/18/2013 02:16 PM, Jonathan Wilkes wrote: On 07/17/2013 09:44 AM, Max wrote: is there something like [ggee/getdir] but for getting the path of the currently running Pd binary? Seems like I saw this somewhere, but I can't remember where. I'll add it to [pdinfo] Hm... there's a function

Re: [PD] get dir of current pd

2013-07-18 Thread Charles Z Henry
With "shell" you could run "which pdextended", but that requires you have pdexented in your path, and it only returns the first pdextended matched. "pwd" might not work--it might just give you the user's home directory. On Thu, Jul 18, 2013 at 1:44 PM, Iain Mott wrote: > there's the "shell" ex

Re: [PD] get dir of current pd

2013-07-18 Thread Iain Mott
there's the "shell" external - to which you can send a "pwd" message - but perhaps this only works on linux, maybe mac? Iain Em Wed, 2013-07-17 às 06:44 -0700, Max escreveu: > is there something like [ggee/getdir] but for getting the path of the > currently running Pd binary? > > m. > ___

Re: [PD] get dir of current pd

2013-07-18 Thread Jonathan Wilkes
On 07/17/2013 09:44 AM, Max wrote: is there something like [ggee/getdir] but for getting the path of the currently running Pd binary? Seems like I saw this somewhere, but I can't remember where. I'll add it to [pdinfo] -Jonathan m. ___ Pd-list@i

[PD] get dir of current pd

2013-07-17 Thread Max
is there something like [ggee/getdir] but for getting the path of the currently running Pd binary? m. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list