Error Handling and Logging - DHBjorndalen/AGN_XMM GitHub Wiki
The script contains a built-in logging and error handling mechanism to ensure smooth execution and debugging. Errors are logged during the process, and a report can be generated by analyzing the log file (nohup.out
).
Error Counting Example (Post-Processing Step):
awk '
/Processing folder:/ {
if ($3 !~ /%+/) {
folder=$3;
}
}
/error/ {
if (folder) {
errors[folder]++;
}
}
END {
print "Folders with errors:";
for (f in errors) {
print f
}
}' nohup.out