Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
Glad that you found something useful. Running the script at night does not solve the acute problem when a dangling lock prevents a cvs-user from committing his work, that's my reason for creating an "run-on-demand" solution. Regards ----------------------------------------- Jørgen Møller Larsen, KMF Nykredit Data email: jml at nykredit.dk Tlf. direkte 96 35 50 69 ---------------------------------------- Kyrre Kristiansen <kyrre_kristiansen at ya Til: jml at nykredit.dk hoo.co.uk> cc: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook Vedr.: Re: Vedr.: [Cvsnt] cvsservice command line arguments 2002-03-14 16:33 Besvar venligst til kyrre_kristiansen Thanks for the help, Jørgen, the scripts look good, and I'm impressed! I've not yet tried the cgi scripts yet, but I undoubtebly will when I have the time. The bat file, however, solved the little mystery for my, how to start and stop services under NT (I'm used to Unix/Linux...). I'm using the at command to schedule it at night, so I don't have to do anything in order for it to run. It does mean that I have to check the logs in the morning, but that's a small price to pay for a good night's sleep :-) Regards Kyrre. --- jml at nykredit.dk wrote: > > > You have got it all right! > > I include scripts that can do the job (must be > modified to fit your > installation). > > The script is startet from a web-browser, so you'll > have to set up a > web-server on the cvs-server (can be used to run > CVSWEB also). The > cgi-scripts are perl, so perl must be installed as > well (I use ActivePerl). > You may however use the bat-file directly in stead. > It takes a > cvs-module-name as a parameter. The script is > designed to remove dangling > locks on a single module in stead of on the > repository as a whole for > performance reasons. > > You'll have to modify the "SET CVSRTDIR" statement > in the top of the bat > file and set it to the path of your repository. No > other modifications > should be needed. The output from the bat file is > written to c: > \temp\CVSUNLOCK.LOG > > The listunl.cgi script creates a drop-down list > contaning the modules in > the repository. The "system (dir etc"-line in the > top of the script must be > changed to the path of your repository. > > The unlock.cgi executes the unlock.bat file, and > lists the resulting > cvsunlock.log. The "system(bla bla"-line near the > end of the script must be > changed to point to wherever you have placed the > unlock.bat file. > > The unlock.htm is the entrance to the rest. It just > says "be careful" - the > "GET method action" in the form must be changed to > point to your > web-server/cgi-path. > > There at references to a "default.htm" file here and > there, so you should > have such a file as "home page" with a link to > unlock.htm on your > web-server. > > (See attached file: unlock.htm)(See attached file: > listunl.cgi)(See > attached file: unlock.bat)(See attached file: > unlock.cgi) > > > Regards > > ----------------------------------------- > Jørgen Møller Larsen, KMF > Nykredit Data > email: jml at nykredit.dk > Tlf. direkte 96 35 50 69 > ---------------------------------------- > > > > > > "Kyrre Kristiansen" > > > <kyrre_kristiansen at ya > Til: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook > > hoo.co.uk> cc: > > > Sendt af: > Vedr.: [Cvsnt] cvsservice command line arguments > > cvsnt-admin at cvsnt.org > > > > > > > > > 2002-03-14 11:06 > > > Besvar venligst til > > > "Kyrre Kristiansen" > > > > > > > > > > > > > Is is possible to start and stop the cvs service > form the command line? I'm > experiencing problems with dangling locks, so I'm > going to make a script > that kills all the cvs.exe processes and deletes all > the locks (as > described > in the cvsnt manual), but I think it would be good > to stop the service > before I do. Am I wrong? > > > _______________________________________________ > Cvsnt mailing list > Cvsnt at cvsnt.org > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs > > <HR> <HTML> <HEAD> <TITLE>Remove dangling locks in CVS repository</TITLE> </HEAD> <BODY> <IMG SRC="/icons/cvsbanner.gif"> <H1>CVS Repository tools</H1> <HR> <H3>Remove danglings locks from CVS repository</H3> <HR> This utility removes any dangling locks from a CVS repository. <P> CAUTION: Do not use under heavy repository-traffic. <P> The CVS-server is stopped, and any CVS-tasks are killed. <BR> Locks are deleted from the repository, and the CVS-server is restarted. <P> <TABLE> <TR> <TD valign="top"> Do you want to start this utility? </TD> <TD valign="center"> <FORM method="GET" action="http://nkm18712:4400/cgi-bin/cvsunlock/listunl.cgi/"> <input type=submit value="Yes"> <input type=reset value="No" onclick="javascript:history.back()"></FORM> </TD> </TR> </TABLE> <HR>Comments to <a href="mailto:jml at nykredit.dk">jml at nykredit.dk</a></BODY></HTML> > ATTACHMENT part 3 application/octet-stream name==?iso-8859-1?Q?listunl.cgi?= > ATTACHMENT part 4 application/octet-stream name==?iso-8859-1?Q?unlock.bat?= > ATTACHMENT part 5 application/octet-stream name==?iso-8859-1?Q?unlock.cgi?= ===== ------------------------------------------------------------ Kyrre Kristiansen email: kyrre_kristiansen at yahoo.co.uk web: www.dcs.gla.ac.uk/~kristikr __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com _______________________________________________ Cvsnt mailing list Cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs