Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Check gz zip files when corruption
Name: hoan0202 Date: November 9, 2007 at 09:21:20 Pacific OS: OS CPU/Ram: 512 Product: DEL
Comment:
Could some help to check out this script or any syntax red or command out. This script will check any files with (gz, GZ, zip or ZIP) extension if check any file failed then send out the email notify to whoever need it. Thanks
This will run on Autosys: Command /usr/local/apps/XXX/prod/bin/Checkfiles.ksh WORK_DIR "FILENAME" DC_MAIL
gunzip -t $DON #unzip -t $DON if (($? > 0));then echo "ERROR: Gz file corruption failed! More information should be in this logfile!" exit 20 fi done
} >> "${LOGFILE}"
################################################################### ### End of checking it and e-mail to whoever request it. ###################################################################
cat $LOGFILE | mailx -s "Files received was corruption or bad on the server." ${DC_MAIL}
Summary: Hi, When I use the command : $tar xvpf Components.zip I get "Directory Checksum Error" message. I tried using : $gzip -d -S .zip Components.zip Still no good. I tried : $tar -x Components.zip I ...
Summary: Hello - Question from a newbie here, and for that I apologize. :) We have a billing system that updates our .htpasswd file. We're trying to add more billing systems so our customers have several optio...
Summary: Jim, thanks alot for your help. I've gone ahead and incorporated your code into what I've got, and made a little headway with the whole "detect a new file" part. Please take a look if you can and let ...