openssh-portable/regress/sshd-log-wrapper.sh

12 lines
285 B
Bash
Raw Normal View History

#!/bin/sh
# $OpenBSD: sshd-log-wrapper.sh,v 1.3 2013/04/07 02:16:03 dtucker Exp $
# 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...]
2015-02-26 01:58:22 +01:00
log=$1
shift
2015-02-26 01:58:22 +01:00
exec "$@" -E$log