Thanks, Marshall. (That would have been my next question.)

On Mon, Jan 9, 2012 at 3:50 AM, Marshall Lochbaum <mwlochb...@gmail.com> wrote:
> In J701, fork_jtask_[load'task' accomplishes this. fork is defined as
> fork_jtask_ =: [: 2!:1 '(' , ')&' ,~ ]
>
> However, in J602 it is just an alias for 2!:1, so it's best to assign as
> above in Unix if both J602 and J701 will be used.
>
> Marshall
>
> On Sun, Jan 8, 2012 at 10:46 PM, bill lam <bbill....@gmail.com> wrote:
>
>> It is a feature of *nix shells that an ending "&" in the command line will
>> make the process forked. eg,
>>
>>  2!:1 '/Applications/TextEdit.app/Contents/MacOS/TextEdit &'
>>
>> Пнд, 09 Янв 2012, Ian Clark писал(а):
>> > I try:
>> >
>> > 2!:1 '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
>> >
>> > Chome starts up... the J session freezes. It only unfreezes when I quit
>> Chrome.
>> >
>> > This happens with all apps I can launch from the UNIX command line. Eg:
>> >
>> > 2!:1 '/Applications/TextEdit.app/Contents/MacOS/TextEdit'
>> >
>> >
>> >
>> > On Mon, Jan 9, 2012 at 2:43 AM, bill lam <bbill....@gmail.com> wrote:
>> > > Try, eg,
>> > >
>> > > 2!:1 'firefox &'
>> > >
>> > > Пнд, 09 Янв 2012, Ian Clark писал(а):
>> > >> AFAICS  the purpose of 2!:1 (spawn) is to launch an asynchronous
>> > >> process, eg a separate, parallel J session, and resume immediately it
>> > >> is launched. Am I right?
>> > >>
>> > >> On my Mac it doesn't do that. (I can't establish what it does under
>> > >> Windows because I don't have a Windows machine just now).
>> > >>
>> > >> Sure, it starts the specified process, but then the original J session
>> > >> freezes solid until the spawned process terminates. This behavior is
>> > >> no different from 2!:0 except to discard any returned value.
>> > >>
>> > >> Absence of this facility is preventing me from doing a lot of the
>> > >> things I want to. In particular I can't play a sound without my app
>> > >> hanging until the sound has finished playing. Nor can I write a server
>> > >> in J and have it fire off a client. I have to launch the client
>> > >> manually.
>> > >>
>> > >> Has nobody reported this behavior before? Any chance of getting it
>> > >> fixed? Anyone know a workaround (such as a dll/dylib call)?
>> > >>
>> > >>    JVERSION
>> > >> Installer: j602a_mac_intel.dmg
>> > >> Engine: j602/2008-03-03/16:45
>> > >> Library: 6.02.057
>> > >>
>> > >>    JVERSION
>> > >> Engine: j701/2011-01-10/11:25 build: Feb  6 2011 16:16:29
>> > >> Library: 7.01.052
>> > >> Platform: Darwin 64
>> > >> Installer: j701a_mac64.dmg
>> > >>
>> > >> InstallPath: /Applications/j64-701
>> > >> ----------------------------------------------------------------------
>> > >> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> > >
>> > > --
>> > > regards,
>> > > ====================================================
>> > > GPG key 1024D/4434BAB3 2008-08-24
>> > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> > > ----------------------------------------------------------------------
>> > > For information about J forums see http://www.jsoftware.com/forums.htm
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>
>> --
>> regards,
>> ====================================================
>> GPG key 1024D/4434BAB3 2008-08-24
>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to