summaryrefslogtreecommitdiff
path: root/regress/sshd-log-wrapper.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-03-07 18:33:02 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-03-07 18:33:02 +1100
commita0f3ba71a01428fb468ee7a6bc2fed42436c83f8 (patch)
tree0301a89585d250084f3481f00d887f057c936f09 /regress/sshd-log-wrapper.sh
parentb712fccc18b218e98bd6ef69c85308cd00a6e543 (diff)
- 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 00000000..c7a5ef3a
--- /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