[cvsnt] CVSNT 2.0.6 fails in a batch file
Alexandre Augusto Drummond Barroso
adrummond at bdmg.mg.gov.br
Tue Jul 22 19:21:26 BST 2003
It seems CMD is spawning processes concurrently so the first process locks the file while the following processes fail.
So you may use "start /w" before each command to make CMD wait the process termination before interpreting next command line.:
start /w %CVS_EXE% update -P Miranda-IM >report.txt
start /w %CVS_EXE% update -P Plugins >>report.txt
start /w %CVS_EXE% update -P Protocols >>report.txt
start /w %CVS_EXE% update -P SDK >>report.txt
start /w %CVS_EXE% update -P Tools >>report.txt
It must solve this problem
Cheers,
Zandall.
> -----Original Message-----
> From: George Hazan [mailto:*ghazan at voxnet.ru]
> Sent: Tuesday, July 22, 2003 2:50 AM
> To: cvsnt at cvsnt.org
> Subject: [cvsnt] CVSNT 2.0.6 fails in a batch file
>
>
> Hi.
>
> I use a batch file to update the source tree mirror on the
> regular basis. It
> calls cvs.exe several times and redirects its output to the
> report file. The
> problem is that CVS runs Ok only on the first time, all
> another runs fail
> with the error "file report.txt is locked by another process".
>
> Below is the brief review of that batch file:
> ========= 8< ========== >8 ==============
> set CVSROOT=:ext:ghazan at cvs.sourceforge.net:/cvsroot/miranda-icq
> set CVS_EXE=c:\util\cvs.exe
> set CVS_RSH=c:\util\putty\plink.exe
>
> %CVS_EXE% update -P Miranda-IM >report.txt
> %CVS_EXE% update -P Plugins >>report.txt
> %CVS_EXE% update -P Protocols >>report.txt
> %CVS_EXE% update -P SDK >>report.txt
> %CVS_EXE% update -P Tools >>report.txt
> ========= 8< ========== >8 ==============
>
> The problem disappears if I insert 'sleep 1' command after
> each call of
> CVS.EXE, but I cannot call this order of things normal.
>
> I'm using CVSNT 2.0.6 under WinXP Prof Eng SP1 + all postfixes, NTFS
> partition.
>
> --
> WMBR, George Hazan (ghazan at voxnet.ru)
>
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
>
More information about the cvsnt
mailing list