Actually for non-windows platforms, it is more common to use
2!:x foreign conjunctions directly instead of jtask locale,

2!:0 'echo -n "hello" | openssl sha1'

see j dictionary for 2!:x family.

Вс, 14 дек 2014, Jon Hough написал(а):
> Thanks.
> 
> This did the trick:
> 
> 
> 
> ]a =:  spawn_jtask_ 'echo -n "hello" | openssl sha1'
> 
> > From: [email protected]
> > Date: Sat, 13 Dec 2014 23:35:36 -0800
> > To: [email protected]
> > Subject: Re: [Jprogramming] Calling Command line tools from J
> > 
> > Hi Jon,
> > 
> > The path to the script that defines launch, fork and spawn is 
> > 
> >  jpath '~system/main/task.ijs'
> > 
> > If you give that script a read you might find what you need.
> > 
> > Hope this helps.
> > 
> > Cheers, bob
  
> > On Dec 13, 2014, at 11:11 PM, Jon Hough <[email protected]> wrote:
> > 
> > > Thanks.
> > > 
> > > I am currently trying to look on Jsoftware.com and its wiki for 
> > > references to this, but searching fro "jtask" doesn't yield much.
> > > The one page I found seems to be a dead end
> > > http://www.jsoftware.com/user/script_task.htm
> > > 
> > >> Date: Sun, 14 Dec 2014 07:01:48 +0000
> > >> From: [email protected]
> > >> To: [email protected]
> > >> Subject: Re: [Jprogramming] Calling Command line tools from J
> > >> 
> > >> the jtask locale is loaded by default.  launch fork and spawn are the 
> > >> main functions.
> > >> 
> > >> 
> > >> 
> > >> ________________________________
> > >> From: Jon Hough <[email protected]>
> > >> To: "[email protected]" <[email protected]> 
> > >> Sent: Sunday, December 14, 2014 1:26 AM
> > >> Subject: [Jprogramming] Calling Command line tools from J
> > >> 
> > >> 
> > >> If I want to call a command line tool, e.g. openssl, how can I do this 
> > >> from JQT? Is it possible?
> > >> 
> > >> I'm thinking of something similar to Python's os.system
> > >> 
> > >> https://docs.python.org/2/library/os.html#os.system
> > >> 
> > >> 
> > >> 
> > >> ----------------------------------------------------------------------
> > >> 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
> > 
> > ----------------------------------------------------------------------
> > 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
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to