1146998Sdes#!/bin/sh
2255670Sdes#       $OpenBSD: sshd-log-wrapper.sh,v 1.3 2013/04/07 02:16:03 dtucker Exp $
3146998Sdes#       Placed in the Public Domain.
4146998Sdes#
5146998Sdes# simple wrapper for sshd proxy mode to catch stderr output
6295367Sdes# sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
7146998Sdes
8295367Sdeslog=$1
9146998Sdesshift
10146998Sdes
11295367Sdesexec "$@" -E$log
12