freebsd_amp_hwpstate/regress/sshd-log-wrapper.sh

12 lines
285 B
Bash
Raw Normal View History

2005-06-05 15:40:50 +00:00
#!/bin/sh
2018-05-06 12:27:04 +00:00
# $OpenBSD: sshd-log-wrapper.sh,v 1.4 2016/11/25 02:56:49 dtucker Exp $
2005-06-05 15:40:50 +00:00
# Placed in the Public Domain.
#
# simple wrapper for sshd proxy mode to catch stderr output
2015-07-02 13:15:34 +00:00
# sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...]
2005-06-05 15:40:50 +00:00
2015-07-02 13:15:34 +00:00
log=$1
2005-06-05 15:40:50 +00:00
shift
2015-07-02 13:15:34 +00:00
exec "$@" -E$log