summaryrefslogtreecommitdiff
path: root/files/common
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:51:09 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:51:09 (GMT)
commitef0ab9ba3f0042f59c0a8f155fcb61187585303e (patch)
tree056fa45436eabc2f929166e46dc5d4654f9d22d0 /files/common
parent439ca48c078818ea883b3a50696138fc62b07a94 (diff)
p2ptbl: print error msgs to stderr instead of stdout
Diffstat (limited to 'files/common')
-rwxr-xr-xfiles/common/sbin/p2ptbl4
1 files changed, 2 insertions, 2 deletions
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;
}
}
contact: Jan Huwald // Impressum