[cvsnt] Re: Precommand - a valid example to test
kerry richard
richard.kerry at siemens.com
Fri Feb 3 10:35:25 GMT 2006
Having originally raised this issue on the list I'd better report my
results here. Thanks to March-Hare for helping me sort it out.
To make this work as Bo expected I needed to add Execute permission for
the user (in my case a Group containing the user) to
windows/system32/cmd.exe.
Execute permission was already present on the .bat file (via the
Everyone group) so I didn't test whether that was also necessary, but I
was advised that it would be.
Informatively,
Sometimes,
Richard.
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf
Of kerry richard
Sent: 30 January 2006 11:28
To: cvsnt at cvsnt.org; cvsasuite.support at march-hare.com
Subject: RE: [cvsnt] Re: Precommand - a valid example to test
Sorry, no. Same as before.
1 and 2. Done exactly as Bo's described.
3. (applications.dtd is a file that is up-to-date)
cvs update -- applications.dtd
Script execution failed
cvs server: Pre-command check failed
As before.
Is there anything else I need to check or do ?
Unhelpfully,
Richard.
PS. Referring also to March-Hare as I now have CVS Suite and support.
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf
Of Bo Berglund
Sent: 27 January 2006 17:39
To: cvsnt at cvsnt.org
Subject: [cvsnt] Re: Precommand - a valid example to test
On Fri, 27 Jan 2006 16:45:50 -0000, "kerry richard"
<richard.kerry at siemens.com> wrote:
>Please could someone post a valid line to put into 'precommand' for me
to see it working, in particular something using a batch file. I've
tried a variety of syntaxes that I thought might work but so far nothing
does.
>
>for example :
>ALL echo "Hello from precommand !"
>ALL echo Hello
>ALL "C:/windows/system/cmd.exe -c echo Hello"
>ALL "E:/Data/CVS/cvsrepo/CVSROOT/default_precommand.bat %c
>
>Noe of these appear to work, in that from Tortoise I get :
>Script execution failed
>cvs server: Pre-command check failed
>
><red>
>Error, CVS operation failed (exit code 1)
></red>
>
>What am I doing wrong ?
>Basic examples with the commands in the ALL line, and calls from the
ALL line to a batch file would both be appreciated.
>
>
It is very simple, really. I fixed a test in about 3 minutes:
1. Create a batch file C:/Temp/cvstst/precmdtest.bat:
@echo off
c:
cd c:\Temp\cvstst
echo User: %1
echo Param2: %2
echo Param3: %3
echo Param4: %4
2. Edit and commit the precommand file:
ALL C:/Temp/cvstst/precmdtest.bat $USER %r %c %d
3. Do an update on a file that is up-to-date:
cvs update -- ThirdFile.txt
User: AGIUSA\Bosse
Param2: /KORVkiosk
Param3: update
Param4: "Fri Jan 27 17:37:56 2006"
/Bo
(Bo Berglund, developer in Sweden)
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list