I'm copying the SolrMarc tech list into this reply. I took a quick look at the import-marc.sh script, and I don't see an obvious reason why this would ever return 5... which suggests that the return status is coming from the Java application itself. I'm hoping that somebody on the list can enlighten us about the meaning of the codes... but if we don't get a response there, please remind me in a couple of days and I'll dig into the Java code to see if I can figure something out. (If you want to look yourself, you can find the code at https://github.com/solrmarc/solrmarc
From: Honza Hejzl <he...@lib.cas.cz
Sent: Tuesday, October 15, 2019 10:03 AM
To: Demian Katz <demia...@villanova.edu
Subject: [EXTERNAL] import-marc.sh strange exit code
please, have you any idea why the import process via import-marc.sh could ever return 5 ?
It seems it is returned very often but it probably does not mean something bad. The problem is it behaves like false in bash scripts and I need to hack that with the classic: import || true, which is quite unsystematic and unclear.
I haven't met such a strange code before :)
I thought it could be something thrown by the importer itself (java) but have no idea how to check that. (And what on Earth does the code mean!)