pavan_gpk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I need a favour from you all to give suggessions and solving my problem.. i am using ActivePerl 5.8 and WinCvs1.2v.i have to develope a Perl script to trigger the wincvs such that it should check-out the cvs files to the workspace and check-in back to cvs/server. i should run this code at command line giving one argument the path of required folder to check-out to my work space.. eg: perl myprog.pl source_path work_space (or) can i get any useful code or reusable code from CPAN or from any sources to use it. Note: under Windows only..... thanks & regards, pavan.

Replies are listed 'Best First'.
Re: Running WinCvs with Perl Script
by PodMaster (Abbot) on Jul 30, 2005 at 07:09 UTC
    Don't. WinCVS is a GUI program, and if you want to automate it you'll have to resort to Win32::GuiTest and Win32::API. It's much simpler to acquire a commandline program (cvsnt) which you can trigger.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      You are correct, however WinCVS uses a command line client to drive the cvs server so OP doesn't need to acquire cvsnt or an equivelent, it's already there with a WinCVS install.


      Perl is Huffman encoded by design.
Re: Running WinCvs with Perl Script
by dws (Chancellor) on Jul 31, 2005 at 04:10 UTC

    I recommend installed cygwin and the CVS client tools (and the OpenSSH client tools, if you plan to have secure access to a CVS repository). This'll give you command-line programs that you can execute from perl, either by system(), backticks, open pipes.