--- Begin Message ---
Subject: |
Passing the parameter $2 -- operation to a script called in taginfo |
Date: |
Tue, 03 Jul 2007 20:52:09 -0700 |
User-agent: |
G2/1.0 |
Hi,
I've spent a fair bit of time reading other posts and looking for
online help on this, but just can't seen to get my script to work. I
know it should be simple to do, I must be missing something.
I got this code from another post and it makes sense. Although I'm
unsure how the parameter is being passed from taginfo to
preTagCheck.sh
Any help is very much appreciated.
Thanks
Diana
taginfo
ALL $CVSROOT/CVSROOT/preTagCheck.sh
preTagCheck.sh
#!/bin/sh
# Everyone can add
$
if [ "$3" = "add" ]; then
exit 0
fi
# Nothing else is allowed.
#
user=`whoami`
# Nothing else is allowed.
#
echo $@ $user>> $CVSROOT/CVSROOT/tag.log
exit 1
--- End Message ---
--- Begin Message ---
Subject: |
confirm 8be5ad9af0a5c372a94c8862d06d3645d6556583 |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---