in reply to cvs checkin sample code

I'm not quite sure what you're trying to do. If you're tring to emulate the funtionality of CVS, don't.

Instead, have a look at one of the CVS related modules on CPAN, such as Cvs. This should do pretty much everything for you.

(I haven't tried this module myself, but if it doesn't suit your purposes, try doing a CPAN search on CVS. There are plenty of CVS related modules available)

Replies are listed 'Best First'.
Re^2: cvs checkin sample code
by Anonymous Monk on Oct 20, 2004 at 14:36 UTC
    Hi
    Thanks for your reply.
    I want to write some code to handle CVS Checkin/Checkout as a cron program.
    But i didn't get any proper direction to tackle this problem.
    I had gone through the internet for sample program, but i didn't get.
    I am expecting some help from perlmonks
    Thanks
      So you want to periodically check in and check out from CVS?

      Apart from the fact that it's possibly a bad idea (since the idea of CVS is usually that it's a manual thing, ie. you decide when you've made some changes to checkin, etc), can you just call the 'cvs' command line directly from cron?

      If you need something a bit more sophisticated, then I recommend looking into the modules I mentioned above.
        Hi
        Thanks for your reply
        "can you just call the 'cvs' command line directly from cron? " How can i do that?
        system(`command here`) command will help to solve? if so what command should i write here?
        Thanks & Regards