summaryrefslogtreecommitdiff
path: root/src/util/logargs.sh
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2004-10-07 10:39:01 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2004-10-07 10:39:01 +0000
commit059ec3d9952740285fb1ebf47961b8aca2eb1b4a (patch)
treee86817287b362e728c8d9ce5d890073553e877ae /src/util/logargs.sh
parent61ec970df30325dbcd8c9d0f0e431dc793126656 (diff)
Start
Diffstat (limited to 'src/util/logargs.sh')
-rwxr-xr-xsrc/util/logargs.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/util/logargs.sh b/src/util/logargs.sh
new file mode 100755
index 000000000..1b0b32124
--- /dev/null
+++ b/src/util/logargs.sh
@@ -0,0 +1,27 @@
+#! /bin/sh
+# $Cambridge: exim/src/util/logargs.sh,v 1.1 2004/10/07 10:39:03 ph10 Exp $
+
+# This script can be interposed between a calling program and another
+# program, in order to log the arguments which are being used. This can
+# be helpful in finding out what is going on if some program is calling
+# Exim with arguments it doesn't understand.
+
+# Set this to the the path of the program that must ultimately be called.
+
+CALL=exim
+
+# Set this to the name of the file where the data is to be logged. The
+# script writes on the end of it. It must be accessible to the user who
+# runs the script.
+
+LOGFILE=/home/ph10/tmp/zz
+
+# The arguments are copied to the log file
+
+echo $@ >>$LOGFILE
+
+# The real program is now called
+
+exec $CALL $@
+
+# End