Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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/id_dsa.pub | 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?
Username:
Password:

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

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

    For retirement, I am banking on:










    Results (110 votes), past polls