[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with variables in server mode ( ${=variable} )

From: emc
Subject: Help with variables in server mode ( ${=variable} )
Date: Wed, 19 Sep 2001 11:00:41 -0400

I am having difficulty using variables in server mode.

In my file ( CVSROOT/loginfo ) we are calling a perl script to send
email notification for commits. The perl script uses a variable (nocvsmail)
and runs normaly when run localy.

When runing in server mode from a client, when
root does a suid on the remote side this variable is not picked up even if
it is defined in the users shell.

So step two is to pass this variable ( cvs -s nocvsmail=1 commit file.txt )
doing a commit. Now in ( CVSROOT/loginfo ) if we call the perl script in the
following example...

^utilities  $CVSROOT/CVSROOT/log -v ${=NOCVSMAIL}

Now the perl script is happy. If we don't pass the variable the server does
not send it
as a NULL and we receive an error message.

I can't check in a subshell ( if ${=NOCVAMAIL} > "" ) because the subshell
has no reference to this variable.

Can I set a variable in ( CVSROOT/loginfo ) before the rules?

Any ideas would be appreciated, please mail me directly if possible.


B r u c e   F e r j u l i a n
EMC Corporation
171 South Street
Hopkinton, MA 01748
e-mail    : address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]