Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: cvs wrapper with ssh-agent

by jacques (Priest)
on Sep 19, 2008 at 18:49 UTC ( #712580=note: print w/ replies, xml ) Need Help??


in reply to Re: cvs wrapper with ssh-agent
in thread cvs wrapper with ssh-agent

Originally I had did not have the open() there and had the last line as:

print `/usr/bin/cvs @ARGV`;
But this failed when there were double quotes in the @ARGV. For example if @ARGV contained: commit -m "message goes here" filename_to_commit

So I used open() instead.


Comment on Re^2: cvs wrapper with ssh-agent
Download Code
Re^3: cvs wrapper with ssh-agent
by blazar (Canon) on Sep 19, 2008 at 18:59 UTC

    I personally believe

    If you use open or exec (or system) you can "bypass" the shell by passing a list with more than one element, e.g.:

    open my $data, '-|', '/usr/bin/cvs' => @ARGV or die horribly;
    --
    If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://712580]
help
Chatterbox?
and the web crawler heard nothing...

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

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls