I'm copying solrmarc-tech in case there is an existing setting in there that might help with this.
If nothing else, it would probably be easy enough to write a script in just about any language with a MARC library to count the number of records in a MARC file and set an exit code so that a calling script could act accordingly.
Another option might be to pipe the output of SolrMarc to grep and check for messages about 0 records.
What is your use case?
From: Thomas Misilo [misilot@...]
Sent: Sunday, November 18, 2012 9:40 PM
Subject: [VuFind-General] import-marc.sh
I was wondering if anyone has implemented a check to see if there are at least 1 record in the Marc file before processing it? Or if it is even possible?
Get latest updates about Open Source Projects, Conferences and News.