summaryrefslogtreecommitdiff
path: root/regress/sshd-log-wrapper.sh
blob: c7a5ef3a6809270d6a04f0f5621616c4ab9613b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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