[cvsnt] loginfo not passing log message to my script

Mike Wake mike.wake at thales-tts.com
Thu Apr 22 10:18:44 BST 2004


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.


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
> 



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook