All -
I've recently gotten accustomed, in J6, to writing a few lines of code which
will run for a long time to a file, then running these lines by forking off
a non-display (console-less) version of J, e.g.
(0 : 0) fwrite 'bkpUsu.ijs'
load 'bkp' NB. Start custom backup: gather info on all files and dirs:
'FLNMS FLDTS FLSZS FLPARENT DIRNMS DIRDEP'=. PllDirInfoEG 'C:\'
NB. Save these results since they took so long to gather:
(<'/Temp/')
fileVar_WS_&.>'FLNMS';'FLDTS';'FLSZS';'FLPARENT';'DIRNMS';'DIRDEP'
NB. Use this information to copy most recent 10MB to dated dir:
'batfl cmds'=. buildBatFl_parseDir_ 10e6;'C:/Temp/NWMM20101230/'
shell batfl
2!:55 ''
)
JEXE=: 'C:\Program Files\J602\bin\J.exe'
fork ('"',JEXE,'" -jijx '),'bkpUsu.ijs'
Unfortunately, J7 seems to provide no such option, at least that I can see,
for spinning off an independent copy of the interpreter without tying up my
current session.
When I tried the above using
JEXE=: '"C:\Program Files\J701\bin\j7console" '
the forked process runs in my existing console window (and using the "-jijx"
option returns an error, as one might expect).
Thanks,
Devon
Is there an easy way to spin off an independent copy of J in J7?
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm