Merge branch 'patch-1' of https://github.com/bes-internal/exim into master-bes-rateli...
[exim.git] / src / util / logargs.sh
1 #! /bin/sh
2
3 # This script can be interposed between a calling program and another
4 # program, in order to log the arguments which are being used. This can
5 # be helpful in finding out what is going on if some program is calling
6 # Exim with arguments it doesn't understand.
7
8 # Set this to the the path of the program that must ultimately be called.
9
10 CALL=exim
11
12 # Set this to the name of the file where the data is to be logged. The
13 # script writes on the end of it. It must be accessible to the user who
14 # runs the script.
15
16 LOGFILE=/home/ph10/tmp/zz
17
18 # The arguments are copied to the log file
19
20 echo $@ >>$LOGFILE
21
22 # The real program is now called
23
24 exec $CALL $@
25
26 # End