2005-03-07 08:33:02 +01:00
|
|
|
#!/bin/sh
|
2022-01-04 09:38:53 +01:00
|
|
|
# $OpenBSD: sshd-log-wrapper.sh,v 1.5 2022/01/04 08:38:53 dtucker Exp $
|
2005-03-07 08:33:02 +01:00
|
|
|
# Placed in the Public Domain.
|
|
|
|
#
|
|
|
|
# simple wrapper for sshd proxy mode to catch stderr output
|
2015-02-26 01:58:22 +01:00
|
|
|
# sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
|
2005-03-07 08:33:02 +01:00
|
|
|
|
2015-02-26 01:58:22 +01:00
|
|
|
log=$1
|
2005-03-07 08:33:02 +01:00
|
|
|
shift
|
|
|
|
|
2022-01-04 09:38:53 +01:00
|
|
|
echo "Executing: $@" >>$log
|
2015-02-26 01:58:22 +01:00
|
|
|
exec "$@" -E$log
|