]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1539088: marc_export prints "Waiting for input" when non-interactive
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 28 Jan 2016 13:55:22 +0000 (08:55 -0500)
committerBen Shum <ben@evergreener.net>
Mon, 1 Feb 2016 06:37:21 +0000 (01:37 -0500)
commitb7890baa23654aa2b65a7b00bed8a26c8ab310a2
tree5ac7ba7de9bc4c2671bb8e5e9e950033049897cc
parent58407b1b81377c9017327aed7c4355fcbb3eb908
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 database.

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

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