in reply to gzip command always returns -1

Perhaps you should be using system to execute the call to gzip, rather than backticks. If you are not interested in the STDOUT from the call (which is returned by using backticks), system will execute the call, and return the exit code of the executed process. See system

May the Force be with you

Replies are listed 'Best First'.
Re^2: gzip command always returns -1
by jyoshv (Novice) on Jan 17, 2005 at 21:18 UTC
    Thank you very much. It was because of backticks, using system actually solved my problem :)!!! Thx! J