Skip to content
Snippets Groups Projects
Commit 0391a5ae authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- wrapper script added to catch "out of memory" on Rosetta system

parent 628ee0d7
Branches
Tags
No related merge requests found
#!/bin/bash
function error () {
ERRLOG="$1"
DATE=$(date +"%F %X")
echo "Error at $DATE" |tee -a "$ERRLOG"
free | tee -a "$ERRLOG"
vmstat | tee -a "$ERRLOG"
echo "------" | tee -a "$ERRLOG"
}
function fixity () {
ERRLOG="$1"
perl -I /home/aromeyke/perl5/lib/perl5/ /root/deep_fixitycheck.pl \
--map_path=/mnt/rosetta-prod_2021_deepfixity_tmp \
--search_dir="/mnt/rosetta-prod_2021_deepfixity_tmp/permanent_storage/normal/2021/${i}" \
--report="report_fixity_year2021_${i}_gestartet_${TIME}.txt" 2>> "$ERRLOG"
}
# 04 already processed
for i in 02 03 05 06 07 08 09 10 11; do
TIME=$(date +"%F_%X")
ERRLOG="error_report_year2021_${i}_${TIME}.txt"
fixity "$ERRLOG" || error "$ERRLOG"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment