summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh/sshd-log-wrapper.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2005-02-27 11:33:31 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2005-02-27 11:33:31 +0000
commit97a09659351cad20f3faa6ce4490163b4e042e85 (patch)
tree875ee20a2457147d611f48d3853a231477d493c9 /regress/usr.bin/ssh/sshd-log-wrapper.sh
parenta9ae840fad55f48ca0d8a879158951871c3990ba (diff)
Add optional capability to log output from regress commands; ok markus@
Use with: make TEST_SSH_LOGFILE=/tmp/regress.log
Diffstat (limited to 'regress/usr.bin/ssh/sshd-log-wrapper.sh')
-rw-r--r--regress/usr.bin/ssh/sshd-log-wrapper.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/regress/usr.bin/ssh/sshd-log-wrapper.sh b/regress/usr.bin/ssh/sshd-log-wrapper.sh
new file mode 100644
index 00000000000..a877609a6e2
--- /dev/null
+++ b/regress/usr.bin/ssh/sshd-log-wrapper.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# $OpenBSD: sshd-log-wrapper.sh,v 1.1 2005/02/27 11:33:30 dtucker Exp $
+# Placed in the Public Domain.
+#
+# simple wrapper for sshd proxy mode to catch stderr output
+# sh sshd-log-wrapper.sh /path/to/sshd /path/to/logfile
+
+sshd=$1
+log=$2
+shift
+shift
+
+exec $sshd $@ -e 2>$log