Welcome, Guest.
Please login or register.
less verbose logging
Forum Login
Login Name: Create a new account
Password:     Forgot password

Info-ZIP Discussion Forum    Info-ZIP Software Discussions and Feature Requests    Info-ZIP Zip  ›  less verbose logging

less verbose logging  This thread currently has 1040 views. Print
1 Pages 1 Recommend Thread
karmatic
February 4, 2010, 2:24am Report to Moderator
Baby Member
Posts: 1
Hi.
I am a novice to using info-zip, but I have started using it in the last few months for an automatic backup script and it has been working fairly well. I do log the output of all of the commands in the script, but was looking for something a little less verbose than the default output. 

Here's what I'm getting:
Quoted Text

  adding: data/31840686.DCT (184 bytes security) (deflated 83%)
  adding: data/31840686.DCX (184 bytes security) (deflated 92%)
  adding: data/32013618.TXT (160 bytes security) (stored 0%)
  adding: data/32162811.DBC (184 bytes security) (deflated 86%)
  


I really don't need a list of exactly which files were added to the archive. I have tried using the -q (quiet) switch, but I want to be able to see any error message generated. Some of the files are being pulled over the network and I want to make sure this is happening correctly.

Is there some way to have the output be less wordy than the default, but more verbose than the quiet mode?

edit: 1724 lines per day is a lot to scroll through. Additionally, I was hoping for some way to log a summary. "1724 files successfully added to archive", or something to that effect.

Thank you.
-K
Logged
Private Message
sms
February 4, 2010, 3:37am Report to Moderator
Info-ZIP Team
Posts: 463
   Does "-lf <log_file> -q" come close enough?  I don't see any way to
get it to use stdout or stderr ("-" is not special), but that could
probably  be added pretty easily, if desired.

   "zip -h2" for details.
Logged
Private Message Reply: 1 - 2
EG
April 22, 2010, 5:12am Report to Moderator
Info-ZIP Team
Posts: 463
Assuming Zip 3.0 or later, check out the log options in the man page.  (If the Zip 3.0 man page is not installed on your system, the contents are included in zip.txt in the main source distribution for Zip.)  The -h2 option also summarizes the various logging options.

Adding a way to send the log output to stdout or stderr has been added to the TODO list.
Logged
Private Message Reply: 2 - 2
1 Pages 1 Recommend Thread
Print