]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP 1539088: marc_export prints "Waiting for input" when non-interactive user/dyrcona/lp1539088_marc-export-interactive
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 28 Jan 2016 13:55:22 +0000 (08:55 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 28 Jan 2016 15:46:36 +0000 (10:46 -0500)
commit1c5fdaf6a5f071c144300e9939b6035ba043089e
tree93df742eb81f2efdf41aeef43ebd1b77b484d959
parentea474a9eafd5093f9440328c907809d3715b74f1
LP 1539088: marc_export prints "Waiting for input" when non-interactive

This commit modifies marc_export to only print "Waiting for input"
when run in an interactive manner.  This suppresses the output when
run from a pipe.

To test this change:

Before the commit is applied both of the following command lines will
output "Waiting for input" to standard error:

$ marc_export --format XML

$ echo <bibid> | marc_export --format XML

Where you replace <bibid> with a bibliographic record entry id from
your databaese.

After the commit is applied, only the first command line will ouput
the "Waiting for input" message.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/support-scripts/marc_export.in