From be3bf8862d129b773eb9085b72f6f7deaa5e5ea9 Mon Sep 17 00:00:00 2001 From: Tom Scavo Date: Thu, 20 Apr 2017 14:24:49 -0400 Subject: [PATCH] Display stderr on the terminal device --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef84bf9..a4a5858 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,8 @@ $ $BIN_DIR/cget.sh -C $url1 | wc -c Of course the ``-C`` option will fail if the resource is not cached: ```Shell -$ $BIN_DIR/cget.sh -C $url2 +$ $BIN_DIR/cget.sh -C $url2 2> /dev/tty +ERROR: conditional_get: resource not cached: http://md.incommon.org/InCommon/InCommon-metadata-fallback.xml $ echo $? 1 ``` @@ -93,7 +94,8 @@ $ echo $? OTOH, the ``-F`` option forces the return of a fresh resource from the server. If the resource is cached and unchanged on the server (304), such a request will fail, however: ```Shell -$ $BIN_DIR/cget.sh -F $url1 +$ $BIN_DIR/cget.sh -F $url1 2> /dev/tty +ERROR: conditional_get: resource not modified: http://md.incommon.org/InCommon/InCommon-metadata-preview.xml $ echo $? 1 $ $BIN_DIR/cget.sh -F $url2 > /dev/null