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.
Hi Mike, Thanks for your reply. Well, my perl setup is all right. What I'm doing right now as a work around is that during verifying the log message format (I verify it using my verify_commitinfo.pl perl script), I save the log message in a temporary file and access this file in another script bz_append_log.pl which is called by loginfo, to read the saved log message from temporary file. This way is working all right and I can append the log message to the Bug report specified by the developer. But using this approach, it crashes the CVSNT sometimes, giving me the error "Something bad happened to CVS, Would you like to dump the crash" and when I press "Yes" it says "Failed to save the dump data". The crash is so unexpected that I could never figure out what can be the problem. But surely the crash was caused because of these scripts because when I disable these scripts, there are no crashes. Thanks, Varun ----- Original Message ----- From: "Mike Wake" <mike.wake at thales-tts.com> To: "Varun Bansal" <varun at in-reality.com> Cc: <cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook> Sent: Thursday, April 22, 2004 2:48 PM Subject: Re: [cvsnt] loginfo not passing log message to my script > G'day Varun, > > Is perl is setup properly? > > You've probably already verified that the script is actually running, > but if not, Print something to the file that doesn't rely on STDIN, to > rule this out. > > Mikew > > > Varun Bansal wrote: > > Hi, > > > > I'm using cvsnt 2.0.34 version. I'm trying to integrate cvsnt and bugzilla > > on a local windows machine without using bugzilla's email gateway. I'm using > > verifymsg to enforce the developers to provide log message in a prescribed > > format. After the log message verification, I'm using loginfo to pass the > > log message provided by the developer to the STDIN of my script so that I > > can append it to Bugzilla bug. But the problem is that loginfo is not > > passing log message to the STDIN of my script. > > > > My loginfo file has this entry which calls my script bz_append_log.pl > > > > DEFAULT C:\cvsrepo\test\CVSROOT\bz_append_log.pl $USER %{sVv} > > > > A part of my script that reads the STDIN looks like: > > > > sub main() { > > > > my @cvslog = <STDIN>; //just to check if STDIN has > > something > > my $tmppath = "C:\\tempfile"; > > open TEMP, ">$tmppath"; > > print TEMP @cvslog; //dump all STDIN in tempfile > > close TEMP; > > my $username = shift @ARGV; > > ......... > > ....... > > > > But after any commit with a log message, I check the "tempfile" and always > > find it empty. The loginfo is not passing any log information to tempfile. I > > understand that to extract the log message from STDIN, I need to search for > > "Log Message:" keyword and the following data will be the log message I > > need. > > > > Anyone having any idea why loginfo is not passing log message to my script ? > > > > Thanks, > > Varun > > > > > > > > > > > > _______________________________________________ > > cvsnt mailing list > > cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook > > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs > > > _______________________________________________ > cvsnt mailing list > cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs >