Skip to content

Commit

Permalink
Display stderr on the terminal device
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo authored Apr 20, 2017
1 parent 815b33d commit be3bf88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ $ $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
```

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
Expand Down

0 comments on commit be3bf88

Please sign in to comment.