If a spool file is defined on the marc_stream_importer.pl
command line, no null byte is output after the record(s)
are processed.
To test:
[1] Use marc_stream_importer.pl to import a record from
a file; verify that the output messages do not include
a null character.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
$msg .= "Successfully imported $imported $cur_rec_type records ".
"using merge profile '$profile'\n" if $imported;
$msg .= "Failed to import $failed $cur_rec_type records\n" if $failed;
- $msg .= "\x00";
+ $msg .= "\x00" unless $spoolfile;
print $msg;
clear_auth_token(); # logout