Whoops, I emailed this to Scott and not to the group... This answers your question Stefan.
Stuart. Begin forwarded message: > From: Stuart Roebuck <[EMAIL PROTECTED]> > Date: Mon Nov 06, 2000 09:37:21 AM US/Pacific > To: [EMAIL PROTECTED] > Subject: Re: [new file] a different Telnet Task > X-Mailer: Apple Mail (2.337) > > > No problem - your task is more functional than my own and more elegently > structured so I'm > more than happy for it to take the place of mine. Perhaps I could then send > some patches in the > spirit of my command issuing code as a subtask (perhaps called "exec") to > simplify the > issuing of commands across different hosts - the problem with some hosts > echoing command > lines is hard to cover with this implementation in a generic way, and it > would be nice to > build in fail detection. > > Some minor points: > > * The log output goes through standard out rather than log(). I'm not sure > if this is an issue > or not! > > * I found that some telnet hosts seemed to not provide a prompt without > sending them a return > character. If this isn't just my impatience, then it may be worth putting in > an extra line in > the login code. > > * It might be worth providing an option to turn off echo to screen when > sending the password. > > > On Monday, November 6, 2000, at 04:54 PM, Scott Carlson wrote: > > > Looks like I missed the curve again... > > > > I've created a telnet task of my own. This is a bit more generic. As it > > incorporates subTasks for the read and writes. I had some ideas about > > allowing > > a list of possible responses and performing conditional writes as well. > > > > I don't want to step on any toes. If I should create a patch to Stuart's > > telnet I can do that. The userid/password combination are not required, > > but if > > they are specified it uses ogin: and ssword: as prompts. > > > > An example task looks like this: > > <target name="bounce" depends="init"> > > <telnet userid="userid" password="password" server="server"> > > <read>></read> > > <write string="./bounce"/> > > <read string="restarted"/> > > </telnet> > > </target> > > > > > > ===== > > ----------------- > > Scott Carlson > > Marquette University Alumnus > > [EMAIL PROTECTED] > > > > > > __________________________________________________ > > Do You Yahoo!? > > Thousands of Stores. Millions of Products. All in one Place. > > http://shopping.yahoo.com/ > > ------------------------------------------------------------------------- > Stuart Roebuck, BSc, MBA Tel.: 0131 228 4853 / Fax.: 0870 054 8322 > Managing Director Alpha Numeric Pager: 07654 588898 > ADOLOS http://www.adolos.com/ > ------------------------------------------------------------------------- Stuart Roebuck, BSc, MBA Tel.: 0131 228 4853 / Fax.: 0870 054 8322 Managing Director Alpha Numeric Pager: 07654 588898 ADOLOS http://www.adolos.com/
