summaryrefslogtreecommitdiffstats
path: root/regress/sshd-log-wrapper.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-03-07 08:33:02 +0100
committerDarren Tucker <dtucker@zip.com.au>2005-03-07 08:33:02 +0100
commita0f3ba71a01428fb468ee7a6bc2fed42436c83f8 (patch)
tree0301a89585d250084f3481f00d887f057c936f09 /regress/sshd-log-wrapper.sh
parent - david@cvs.openbsd.org 2005/01/14 04:21:18 (diff)
downloadopenssh-a0f3ba71a01428fb468ee7a6bc2fed42436c83f8.tar.xz
openssh-a0f3ba71a01428fb468ee7a6bc2fed42436c83f8.zip
- dtucker@cvs.openbsd.org 2005/02/27 11:33:30
[multiplex.sh test-exec.sh sshd-log-wrapper.sh] Add optional capability to log output from regress commands; ok markus@ Use with: make TEST_SSH_LOGFILE=/tmp/regress.log
Diffstat (limited to 'regress/sshd-log-wrapper.sh')
-rw-r--r--regress/sshd-log-wrapper.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/regress/sshd-log-wrapper.sh b/regress/sshd-log-wrapper.sh
new file mode 100644
index 000000000..c7a5ef3a6
--- /dev/null
+++ b/regress/sshd-log-wrapper.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# $OpenBSD: sshd-log-wrapper.sh,v 1.2 2005/02/27 11:40: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