|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.
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");
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.
|[Prev in Thread]||Current Thread||[Next in Thread]|