R
Rebhan, Gilbert
Hi,
i want to do a cvs login for a list of cvsrepositories
with IO.popen
the normal login via Windows shell looks like =3D
Y:\>cvs -d server:username@cvshost:d:/cvsrepos/test login
Logging in to server:username@cvshost:2401:d:/cvsrepos/test
CVS password: ********=20
i tried with =3D
cvsrepos=3D%w[test,test1,test2]
cvsrepos.each {|x|
IO.popen("#{CVSEXE} -d #{CVSROOT}/#{x} login", 'r+') do |pipe|
pipe << "password"
pipe.close_write
puts pipe.read
end
}
but the script hangs with the output
CVS password:
What went wrong ?
Regards, Gilbert
i want to do a cvs login for a list of cvsrepositories
with IO.popen
the normal login via Windows shell looks like =3D
Y:\>cvs -d server:username@cvshost:d:/cvsrepos/test login
Logging in to server:username@cvshost:2401:d:/cvsrepos/test
CVS password: ********=20
i tried with =3D
cvsrepos=3D%w[test,test1,test2]
cvsrepos.each {|x|
IO.popen("#{CVSEXE} -d #{CVSROOT}/#{x} login", 'r+') do |pipe|
pipe << "password"
pipe.close_write
puts pipe.read
end
}
but the script hangs with the output
CVS password:
What went wrong ?
Regards, Gilbert