but "ls" is not a script file, so that won't work anyway i guess. What happens if you replace "ls" in your code with "zcat". Then it should print something like: Hola gzip: compressed data not read from a terminal. Use -f to force decompression. For help, type: gzip -h so apparently it works ok (here at least ;))