Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

cvs update -j with perl cvs module

by david2008 (Scribe)
on Aug 29, 2010 at 08:05 UTC ( #857893=perlquestion: print w/ replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I began to use the nice module cvs http://search.cpan.org/~rsoliv/Cvs-0.07/lib/Cvs.pm.
I tried to find an option for cvs update -j, but did not find it.
Does anyone know how to make it with this module?
Alternatively, does anyone know another module, he worked with and makes the job ?

BR,
David

Comment on cvs update -j with perl cvs module
Re: cvs update -j with perl cvs module
by Khen1950fx (Canon) on Aug 29, 2010 at 10:32 UTC
    Cvs::Simple might work better for you. For update, I tried
    #!/usr/bin/perl use strict; use warnings; use Cvs::Simple; my ($cvs) = Cvs::Simple->new(); my $old = '/cvs-test'; my $new = '/cvs-test2'; $cvs->merge($old, $new, 'new_filename'); #my $result = $cvs->update();
    Note $cvs->update(): should probably be used with callbacks.
Re: cvs update -j with perl cvs module
by toolic (Bishop) on Aug 30, 2010 at 02:18 UTC
    If you can't get a module to do what you want, you could just use system:
    system 'cvs update -j' and die "Error: $?";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://857893]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-07-02 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (31 votes), past polls