Hi,
I found the reason:
The command syntax, given in the file notify( the commented in line ), is
wrong.
Even  in the book "CVS - kurz & gut" by G. N. Purdy, O'Reilly 2001, is
contained this error.
If I create with 'cvs init' the CVSROOT administrative files, the line in
notify is wrong.

I tried on the command line:

fth@saft(23)%echo "" | /usr/ucb/mail fth -s "CVS notification"
cannot chdir(/var/spool/mqueue): Permission denied
fth@saft (24)% echo "" | mail fth -s "CVS notification"
mail: Options MUST PRECEDE persons
fth@saft (25)% echo "" | mail -s "CVS notification" fth
fth@saft (26)% echo "" | /usr/ucb/mail -s "CVS notification" fth
fth@saft (27)%

Thus the command line in the virgin file 'notify' has wrong syntax. %s
means the recipient, and should be given as the last argument.
Insted of
    ALL /usr/ucb/mail %s -s "CVS notification"
it should read like
    ALL /usr/ucb/mail  -s "CVS notification" %s

Now notification works fine.

Frank


Frank Thrum wrote:

> hi,
> we want to use the functionality cvs watch, edit, unedit.
> I have an entry in $CVSROOT/CVSROOT/notify:
>
>   ALL /usr/ucb/mail %s -s "CVS notification"
>
> I have set up watches for the files ( others too ) , and 'cvs watchers'
> gives the right answer.
>
> when  I do however a 'cvs edit <filename>, I get an error message
>   %cvs edit c13n.drc
>   cannot chdir(/var/spool/mqueue): Permission denied
>
> the same entry in the file $CVSROOT/CVSROOT/loginfo works without
> problems.
> That's why I cannot understand the different behaviour of the mail
> action in the files notify and loginfo.
>
> I use cvs  1.11.1p1.
>
> Frank
>
> [EMAIL PROTECTED]

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to