From: "Ara.T.Howard" Date: 2004-04-15T01:54:20+09:00 Subject: Re: ruby pty/expect help On Thu, 15 Apr 2004, ts wrote: > >>>>> "A" == Ara T Howard writes: > > A> without the read it generates the expected output, but no id_rsa file is > A> produced and no error is given... doesn't the call to IO.expect do the reading > A> anyhow? also, the example in ext/pty/example_expect.rb doesn't seem to do any > A> reading either? > > Without the read it don't give an error and don't generate the id_rsa > files. > > With the read it give an error and generate the id_rsa files, no ? > > Then protect the read :-) > > > > Guy DEcoux guy- you are a saint. why on earth would one be __required__ to do a read which generates an error? and why don't the example scripts do this? -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | URL :: http://www.ngdc.noaa.gov/stp/ | TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done ===============================================================================