Jump to content

How to tell gunzip to read the file when the output file is there


Recommended Posts

Guest alajangi
Posted

Hi Experts,

 

I want to create a new file if find command get some output, when i ran the below command I am getting the following error

 

# gunzip -c `find /home/guna/web3/ -iname "clk*" -cmin -66` >> /home/guna/$(date +%Y%h%d%H).log

gzip: compressed data not read from a terminal. Use -f to force decompression.

For help, type: gzip -h

 

because the output from find command there is no file generated in 66min, how to tell gunzip to read the file when find command found any file. when I see the log the error is below, the above command I am running as a cronjob.

 

# tail -f /var/mail/root

gzip: stdin: unexpected end of file

 

Please help me to get rid from this.

 

Thanks,

Kishore.

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...