Thanks Raul! Your hint allowed me to avoid using the overly verbose 7z.exe,
and use gzip instead, which doesn't pollute the stout with completion text:

   filepth =: 'c:\Gzip\tsttxt.gz'
   zipth =: '"c:\Gzip\gzip.exe -d -c "'
   shell zipth, filepth

This is a test file 1 2 3 4 5 6 7 8 9 0
This is a test file 1 2 3 4 5 6 7 8 9 0
This is a test file 1 2 3 4 5 6 7 .... etc.
This is the contents of file tsttxt.txt file that printed out (with no
extra text!)...

Interestingly, the alternate 'spawn zipth, filepth' does not produce any
stdout, so the shell command is definitely required.

By the way, what is the difference between shell_jtask_ and shell? or
spawn_jtask_ and spawn?

Skip


On Sat, Nov 5, 2011 at 8:01 AM, Raul Miller <rauldmil...@gmail.com> wrote:

> Note that gzip also has an option to provide its result on stdout
> instead of replacing the file
>
> http://www.mkssoftware.com/docs/man1/gzip.1.asp
>
> -c (or --stdout)
>
> --
> Raul
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to