chiark / gitweb /
Does not work yet - must trap other calls too
[jarrg-owen.git] / jwrap-script-jpctb
index f6fe699d3e207ea0ec529fd958cf5ab4671f323d..117e720c64c522f1f52d40de0ede7de1697aa237 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/bash
 set -e$JWRAP_SCRIPT_X
 
+exec 4>&2
+exec 2>>/home/ian/u
+date >&2
+
 unwire () {
        ldp="$LD_PRELOAD:"
        ldp2=''
@@ -23,7 +27,7 @@ unwire () {
        unset JWRAP_SCRIPT
 }
 
-echo ":$*"
+true jwrap-script-pctb: "$@"
 
 path="$1"; shift
 arg0="$1"; shift
@@ -53,4 +57,4 @@ if [ x"$lastarg" = x"com.threerings.yohoho.client.YoApp" ]; then
        unwire
 fi
 
-exec -a "$arg0" /dev/jwrap/bypass "$path" "$@"
+exec -a "$arg0" /dev/jwrap/bypass "$path" "$@" 2>&4