blob: c00934c780ba94466423244868f55111f6fc9318 [file] [log] [blame]
Darren Tuckera0f3ba72005-03-07 18:33:02 +11001#!/bin/sh
Darren Tuckerdfea3bc2013-05-17 09:31:39 +10002# $OpenBSD: sshd-log-wrapper.sh,v 1.3 2013/04/07 02:16:03 dtucker Exp $
Darren Tuckera0f3ba72005-03-07 18:33:02 +11003# Placed in the Public Domain.
4#
5# simple wrapper for sshd proxy mode to catch stderr output
Damien Millerbd588532015-02-25 16:58:22 -08006# sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
Darren Tuckera0f3ba72005-03-07 18:33:02 +11007
Damien Millerbd588532015-02-25 16:58:22 -08008log=$1
Darren Tuckera0f3ba72005-03-07 18:33:02 +11009shift
10
Damien Millerbd588532015-02-25 16:58:22 -080011exec "$@" -E$log