info-cvs
[Top][All Lists]
Advanced

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

RE: CVS Status in Perl


From: Don Butts
Subject: RE: CVS Status in Perl
Date: Fri, 17 Dec 2004 07:59:33 -0500

Not a perl or CVS problem, the output you see on the console is probably

STDERR.  Try this:

 

@cvs_cmd = ("cvs status $dir_path_task/$file_name_task > log_data 2>&1");

 

The 2>&1 at the end of your command will also write the STDERR lines to log_data.

Without the 2>&1 you are probably only writing STDOUT to your file.

 


From: address@hidden [mailto:address@hidden
Sent: Friday, December 17, 2004 7:46 AM
To: address@hidden
Subject: CVS Status in Perl

 

Hi,

I am working on a PERL tool and seems that theres a prob with the cvs command implementation in PERL.

I am using the system function in PERL  to run the cvs status function on the command prompt.

The command statement goes like:

@cvs_cmd = ("cvs status $dir_path_task/$file_name_task > log_data");
system (@cvs_cmd);<-- this will run the cvs status on command prompt.

Here the file variables are defined in the PERL program.

The problem is that the cvs status is not getting ran properly from the system command in PERL.

Its not redirecting the status in the log_data file.

Its simpy printing it on the console.

It would be great if someone can help me.

Thanks,

Mehul.


 

 

 


reply via email to

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