Thanks, everybody.
Yes, I just want to lauch the spreadsheet, and then be able to switch
between it and
the J session, and possibly other applications. J shouldn't need to
wait for its
completion.
Clearly, in retrospect, I should have looked at the repertoire in
jtask. Presumably I've
overlooked its documentation somewhere.
With your help, here's what works for me - so far; it's for JQt v 901,
s-beta, under
Windows 10:
Assume we've defined:
jpath '~user/temp/test1.ods'
Simplest,
launch_jtask_ file NB. alternatively, with the full path name
Similar, thanks to David:
shell_jtask_ 'start ',file
Bill's proposal appears to require explicit naming of the spreadsheet
program:
fork_jtask_ '"C:\Program Files (x86)\OpenOffice
4\program\soffice.exe" ',file
(I had previously ensured that the ods extension was associated with the
main
Open Office program.)
Each of these three does what I was looking for.
Sorry, Devon and thanks again for the C code. I don't seem to need it
given these
J-based approaches.
Cheers,
Mike
On 14/12/2019 12:37, bill lam wrote:
If you don't need the output of the new process, try fork_jtask_
On Fri, Dec 13, 2019, 9:56 PM 'Mike Day' via Programming <
[email protected]> wrote:
I've just tried firing up a spreadsheet from J, and appear to find that
J has to wait for
the spreadsheet to be closed before the JQT terminal session can proceed.
Specifically, if I enter the following from the terminal:
shell_jtask_ 'c:/d/j901/user/temp/test1.ods' NB. Open Office
document
the cursor hangs at that line until I close the spreadsheet cleanly or
messily using
taskmaster.
Odd perhaps, as shell is a cover for spawn:
''&$: :(spawn ('cmd /c ' , ]))
and MSDOS help tells me that cmd/c terminates:
"
C:\Windows\System32>cmd/?
Starts a new instance of the Windows command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
"
Not too important for me - just puzzling.
Thanks,
Mike
----------------------------------------------------------------------
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