Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: how to send input to stdin automatically?

by Utilitarian (Vicar)
on Dec 18, 2012 at 09:04 UTC ( #1009318=note: print w/ replies, xml ) Need Help??

in reply to how to send input to stdin automatically?

As a general rule you should enable ssh key exchange on your cvs repository and then the question becomes moot.
From your development machine:

ssh-keygen -t dsa (accept the default for all queries) $ cat ~/.ssh/ | ssh ${repository_host} "mkdir -p .ssh ; cat +>> .ssh/authorized_keys" (enter your password) $ ssh ${repository_host}echo (answer "yes") $ ssh ${repository_host} echo (Nothing should happen, you should just get your prompt back)
You need to set the following environment variables (put them in your .profile or .bashrc) before you can run any cvs command:
$ export CVS_RSH=ssh $ export CVSROOT=${username}@${repositry_host}:/path/to/cvsroot/
Hope that helps

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Comment on Re: how to send input to stdin automatically?
Select or Download Code
Re^2: how to send input to stdin automatically?
by skyworld_chen (Acolyte) on Dec 18, 2012 at 12:46 UTC
    Hi all,

    I'm a new comer for Perl, both SSH and Expect seems difficult to me. I need some time to understand them. Thanks for all of your kind replies.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-01-27 06:53 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (197 votes), past polls