home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # little shell script to snarf it's arguments and stdin and put them
- # in a log file. this way you can see what is being given to the various
- # mailers and also what is being done to addresses.
- # it's a real hack, but it works for me
- #
- # Simon Kenyon, The NSC, Dublin, IRELAND. 24th Nov 86
- #
- echo '-------------'`date`'------------------' >>/tmp/log
- echo -n "Command line: " >>/tmp/log
- for i in "$@"
- do
- echo -n "$i " >>/tmp/log
- done
- echo >>/tmp/log
- while read foo
- do
- echo $foo >>/tmp/log
- done
-