[Jprogramming] Finding & expanding files

Skip Cave skip at caveconsulting.com
Sun Nov 6 01:12:28 HKT 2011


What are the ramifications of executing a program from the command shell,
as opposed to directly executing it? Do both methods provide the calling
process access to stdout? Are there other differences?

Skip

On Sat, Nov 5, 2011 at 9:34 AM, David Mitchell <davidmitchell at att.net>wrote:

> Skip,
>
> There is some documentation to be found by looking at the jtask.ijs script
> via
> this command:
>
> open 'jtask'
>
> In one of the windowing interfaces.
>
> In general, they all use the Windows function CreateProcess:
>
> "Creates a new process and its primary thread. The new process runs in the
> security context of the calling process."
>
> fork and spawn execute a program directly.  shell uses the 'cmd' shell to
> execute programs or shell commands.
> --
> David Mitchell
>
> On 11/5/2011 0:38, Skip Cave wrote:
> snip
> > Several methods to run command-line tasks were mentioned previously in
> this
> > thread, including spawn, fork, shell, and spawn_jtask_. The documentation
> > was not clear on the differences between all these different verbs, so I
> > attacked the problem by trial and error. Is there a doc somewhere, that
> > explains when to use each of these nouns, and the pros and cons of each
> one?
> snip
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Skip Cave
Cave Consulting LLC
Phone: 214-460-4861


More information about the Programming mailing list