Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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."

Replies are listed 'Best First'.
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 surveying the Monastery: (7)
As of 2020-07-06 13:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found