From ef0ab9ba3f0042f59c0a8f155fcb61187585303e Mon Sep 17 00:00:00 2001 From: Katze Miau Date: Fri, 9 Dec 2011 19:51:09 +0000 Subject: p2ptbl: print error msgs to stderr instead of stdout diff --git a/files/common/sbin/p2ptbl b/files/common/sbin/p2ptbl index e30a7d0..2048e37 100755 --- a/files/common/sbin/p2ptbl +++ b/files/common/sbin/p2ptbl @@ -81,7 +81,7 @@ gossip() { } printArgs () { - echo -e "Usage: + echo -e >&2 "Usage: $0 init table $0 get table key $0 show table @@ -94,7 +94,7 @@ $0 gossip table target-size interface" checkTable () { [ -n "$1" ] || printArgs; [ -f "$1" ] || { - echo "$1 is no P2P table"; + echo >&2 "$1 is no P2P table"; printArgs; } } -- cgit v0.10.1