Before I get too involved with traversing the directory tree, I just need to be able to create a function that unzips a .gz file from J.
Here's my scenario: I have a directory right off C: called "Gzip: where I installed the open-source gzip program. The gzip option I need is "-d" for "decompress" I put one of my "log.gz" files in that same gzip directory. Here is a command line expression I used, which works to expand my test log.gz file: In the command window, first I set the directory to the Gzip directory: C:> cd gzip C: Gzip> Then I enter the command: C: Gzip> gzip -d -v (-v is for verbose) log.gz 92.3% -- replaced with log C:Gzip> This worked, and the original log.gz file was replaced with the uncompressed log file. I would prefer to NOT have a replacement happen. Creating a new file with no extension, or a different extension would be better. Unfortunately, the gzip utility appears to not have a 'don't replace' option. But at least I got the file unzipped. However, when I tried this in J 6.02: spawn_jtask_ 'gzip -d ',;'c:gzip/log.gz' nothing happened. No error messages, nothing. And no unzipped file I also tried: fork 'c:\Gzip\gzip -d log.gz' Still nothing. What am I doing wrong? Skip ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
