[Top][All Lists]

[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 (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
        print STDERR "LOGINFO: no problem event history will be

with results that look consistently like:

D:\CVS\trunk\devscripts>cvs commit -m"test updated script"
Checking in;
c:/cvs/devscripts/,v  <--
new revision: 1.2; previous revision: 1.1
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 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.


PS:  I tried the FAQ, Cederqvist and searching but couldn't
hit the right search terms apparently...

reply via email to

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