Darren Tucker | a0f3ba7 | 2005-03-07 18:33:02 +1100 | [diff] [blame] | 1 | #!/bin/sh |
Darren Tucker | dfea3bc | 2013-05-17 09:31:39 +1000 | [diff] [blame] | 2 | # $OpenBSD: sshd-log-wrapper.sh,v 1.3 2013/04/07 02:16:03 dtucker Exp $ |
Darren Tucker | a0f3ba7 | 2005-03-07 18:33:02 +1100 | [diff] [blame] | 3 | # Placed in the Public Domain. |
| 4 | # |
| 5 | # simple wrapper for sshd proxy mode to catch stderr output |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 6 | # sh sshd-log-wrapper.sh /path/to/logfile /path/to/sshd [args...] |
Darren Tucker | a0f3ba7 | 2005-03-07 18:33:02 +1100 | [diff] [blame] | 7 | |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 8 | log=$1 |
Darren Tucker | a0f3ba7 | 2005-03-07 18:33:02 +1100 | [diff] [blame] | 9 | shift |
| 10 | |
Damien Miller | bd58853 | 2015-02-25 16:58:22 -0800 | [diff] [blame] | 11 | exec "$@" -E$log |