info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing processing messages from loginfo script possible?


From: Czarnowski, Aric
Subject: Printing processing messages from loginfo script possible?
Date: Mon, 17 Dec 2001 12:14:33 -0600

Thanks to everybody's help I've gotten emails and other notification
working through loginfo scripts.  Now I'm extending one of those scripts
and would like to print processing messages to the user in situations
where a warning would be appropriate - annoy them about including bug
numbers, etc..

I'm using ActivePerl 5.6.1 and CVS NT 1.11.1.1 (Build 27) and have tried
"print" and "print STDERR" statements:


# Be noisy if a problem number cannot be found
unless(scalar(@problems) > 0) {
        print STDERR "LOGINFO: you should *really* provide a problem
number\n";
        print STDERR "LOGINFO: no problem event history will be
updated\n";
}


with results that look consistently like:


D:\CVS\trunk\devscripts>cvs commit -m"test updated
loginfo_engineering.pl script" updateNameRefs.pl
Checking in updateNameRefs.pl;
c:/cvs/devscripts/updateNameRefs.pl,v  <--  updateNameRefs.pl
new revision: 1.2; previous revision: 1.1
done
cvs commit: warning: unrecognized response `LOGINFO: you should *really*
provide' from cvs server
cvs commit: warning: unrecognized response `LOGINFO: no problem event
history wi' from cvs server


What I'd really like to see is script processing messages forwarded to
the user's shell as, well, whole messages so I could track what's
happening if there is ever a problem in the future.

Is anybody else doing this that could give me a pointer?  I've browsed a
couple loginfo.pl scripts and didn't see a print going anyplace but a
file handle.  It seems like a pretty natural action given the potential
complexity of loginfo/etc. script processing.

--Aric


PS:  I tried the FAQ, Cederqvist and searching
http://ccvs.cvshome.org/servlets/SearchList?listName=info but couldn't
hit the right search terms apparently...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]