Have you tried using -f ? It tells truss to follow any children the original command spawns. I'm not sure if that will work because the tar command isn't actually spawning the gzip command.
This one requires bash but it could be modified to run under other shells.
All of this is assuming that you want the tar and gzip command separate. If you don't need that, you could just use the -z option to tar to have it do the compression.
Have you tried using
-f
? It tells truss to follow any children the original command spawns. I'm not sure if that will work because the tar command isn't actually spawning the gzip command.The other option that might work is:
Again, however, I don't know if it will work but this time it's because I don't know what truss does to STDIN.
If both of those fail, you might get somewhere by using the
-f
option and wrapping both of them in a shell:This one requires bash but it could be modified to run under other shells.
All of this is assuming that you want the
tar
andgzip
command separate. If you don't need that, you could just use the-z
option to tar to have it do the compression.