I guess jconsole no matter in j6 or j7, window or linux, is a console
program in that it will write to stdout which is the console. When a new
jconsole is spawn, it will use parent's console unless you provide a new
console for it, eg, in linux, assume xterm is the console program, 

'(0 0 $ 1!:2&2) (6!:0) i.0' fwrite flnm=. 'testSpinOff.ijs'
fork_jtask_ 'xterm -e jconsole ',flnm

in windows you may try cmd /C or cmd /K  (untested)

Чтв, 12 Май 2011, Devon McCormick писал(а):
> Bill -
> 
> I was using jconsole in both cases as that's what I nearly always use.  (If
> you remember, I posted about some self-inflicted problems using OLE a couple
> of weeks ago because I forgot it only works under j.exe.)  Also, my console
> is always running in an emacs window, if that makes a difference.
> 
> Actually, the anomalous behavior of sending output back to the parent is
> handy in the initial phase of development as it makes it easier to see the
> simple, immediate errors I encounter when I'm first developing a forked
> process.  It would be nice to keep this behavior but to have a way to turn
> it off once preliminary debugging is done.  I'll do some experiments to see
> if it persists once the process is running or if it stops happening after
> the initial load.
> 
> You're probably right about the jprofile difference - I'll check it later.
> I guess this is a difference between the GUI and console version as well -
> j.exe loads the profile unless it's explicitly dis-allowed?
> 
> Thanks,
> 
> Devon
> 
> On Thu, May 12, 2011 at 12:17 AM, bill lam <[email protected]> wrote:
> 
> > This is not a fair comparison, j.exe is gui program and associates without
> > any console window.  What if you also run jconsole.exe in J6?
> >
> > For the winapi32 problem, did the child process also load jprofile.ijs
> > during bootup?
> >
> > Срд, 11 Май 2011, Devon McCormick писал(а):
> > > I think I've mentioned this before, but here's a succinct demonstration
> > of
> > > behavior that differs between J6 and J7.  As many of you are probably
> > aware,
> > > I'm fond of spinning off independent J processes to take advantage of the
> > > multiple cores on my PC.  However, the output from the forked process
> > > appears in the forking session only in J7, as seen here.
> > >
> > > NB. in J6:
> > >    '(0 0 $ 1!:2&2) (6!:0) i.0' fwrite flnm=. 'testSpinOff.ijs'
> > > 25
> > >    JEXE=: '"c:/program files/j602/bin/j.exe" -jijx '
> > >    JEXE,flnm
> > > "c:/program files/j602/bin/j.exe" -jijx testSpinOff.ijs
> > >    fork JEXE,flnm
> > >    JVERSION
> > > Installer: j602a_win.exe
> > > Engine: j602/2008-03-03/16:45
> > > Library: 6.02.051
> > >
> > > NB. However, in J7:
> > >    '(0 0 $ 1!:2&2) (6!:0) i.0' fwrite flnm=. 'testSpinOff.ijs'
> > > 25
> > >    JEXE=: '"c:/program files/j701/bin/jconsole.exe" '
> > >    JEXE,flnm
> > > "c:/program files/j701/bin/jconsole.exe" testSpinOff.ijs
> > >    fork JEXE,flnm
> > >    2011 5 11 23 49 19.04
> > > NB. The result of the forked process shows up in the parent session.
> > >    JVERSION
> > > Engine: j701/2011-01-10/11:25
> > > Library: 7.01.04
> > > Platform: Win 32
> > > Installer: j701a_win.exe
> > > InstallPath: c:/program files/j701
> > >
> > > Anyone know why this is?  It seems like a bug.
> > >
> > > Regards,
> > >
> > > Devon
> > > --
> > > Devon McCormick, CFA
> > > ^me^ at acm.
> > > org is my
> > > preferred e-mail
> > > ----------------------------------------------------------------------
> > > 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
> 
> 
> 
> 
> -- 
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> 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

Reply via email to