diff options
author | tv <tv@iiso> | 2011-09-12 17:35:26 +0200 |
---|---|---|
committer | tv <tv@iiso> | 2011-09-12 17:35:26 +0200 |
commit | d095d11eb534695dc3eaadf3ac2d92b3f02828bd (patch) | |
tree | bafd9851d2b11f84ccd2765a811dbfc35612998b /Reaktor/index | |
parent | a07326f6c57a7e8f49b9bef96ded427275a16e2e (diff) |
//Reaktor: redirect output to syslog
Diffstat (limited to 'Reaktor/index')
-rwxr-xr-x | Reaktor/index | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Reaktor/index b/Reaktor/index index ac647ca3..05827373 100755 --- a/Reaktor/index +++ b/Reaktor/index @@ -4,4 +4,11 @@ set -euf # cd //Reaktor cd $(dirname $(readlink -f $0)) +# redirect stdout [and stderr] to syslog +stdout=`mktemp -u` +mkfifo $stdout +trap "rm -vf $stdout" EXIT INT +exec 1<>$stdout 2>&1 +logger -t Reaktor -f $stdout & + exec IRC/index |