2015-09-09 21:08:05 +02:00
|
|
|
#!/bin/sh
|
2015-09-29 20:59:44 +02:00
|
|
|
# $OpenBSD: sshd-log-wrapper.sh,v 1.3 2013/04/07 02:16:03 dtucker Exp $
|
2015-09-09 21:08:05 +02:00
|
|
|
# Placed in the Public Domain.
|
|
|
|
#
|
|
|
|
# simple wrapper for sshd proxy mode to catch stderr output
|
2015-09-29 20:59:44 +02:00
|
|
|
# sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
|
2015-09-09 21:08:05 +02:00
|
|
|
|
2015-09-29 20:59:44 +02:00
|
|
|
log=$1
|
2015-09-09 21:08:05 +02:00
|
|
|
shift
|
|
|
|
|
2015-09-29 20:59:44 +02:00
|
|
|
exec "$@" -E$log
|