How to capture output of CVS via Perl?

Discussion in 'Perl Misc' started by Chris Weiss, Oct 8, 2004.

  1. Chris Weiss

    Chris Weiss Guest

    I'm trying to capture the output of a cvs update session to a log file
    using ActivePerl and can't seem to get it captured - the CVS results
    still dump to the screen and not to a file...

    Here's the snippit of code I'm trying:

    open(STDOUT, ">".$logfile);
    system($cvs." ".$cvsroot." ".$cvs_update_args);

    Any thoughts on what's going on? Does ActivePerl not support SDTOUT?

    Any help would be greatly appreciated!
     
    Chris Weiss, Oct 8, 2004
    #1
    1. Advertising

  2. Chris Weiss

    John Bokma Guest

    John Bokma, Oct 8, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ddog
    Replies:
    3
    Views:
    621
    Jason Whaley
    Aug 4, 2007
  2. Replies:
    1
    Views:
    624
    GArlington
    Aug 31, 2007
  3. David Ross
    Replies:
    5
    Views:
    181
    Nicholas Van Weerdenburg
    Dec 5, 2004
  4. Holger Biebinger

    CVS access via PERL

    Holger Biebinger, Apr 19, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    341
    Holger Biebinger
    Apr 20, 2004
  5. Chris Weiss

    How to capture output of CVS via Perl?

    Chris Weiss, Oct 8, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    204
    Tad McClellan
    Oct 9, 2004
Loading...

Share This Page