[Top][All Lists]

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

RE: Read CVS check in result.

From: Jim.Hyslop
Subject: RE: Read CVS check in result.
Date: Fri, 16 Jul 2004 08:55:19 -0400

address@hidden wrote:
> All my cvs check in file activity is done by perl script.
> Unfortunately, I am not able to read the cvs output if there is commit
> failure or other failures.  For example:
> $result = `cvs -d /cvs_data -m"Update file" abc/alc.c`;
> If the above cvs command fails to commit, I want to all cvs output
> result to be stored in temporarily $result. Can I do that? If not, how
> can I get the output result. I need the output result to do some
> operations.
CVS sends errors to stderr, and normal output to stdout. $result will hold
the output of stdout. Check your PERL reference to figure out how to capture
the output of stderr.

Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (
Columnist, C/C++ Users Journal (

reply via email to

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