Alternatively, you can do this:
<telnet server="earth" initialCR="no">
<read timeout="10" string="username:"/>
<write echo="false" string="superman"/>
<read timeout="10" string="password:"/>
<write echo="false" string="xxxx"/>
<read timeout="10" string="name:"/> <!--this will
try to read "domain name:" -->
<write echo="false" string="USA"/>
...
</telnet>
hth
Rubun
-----Original Message-----
From: Johannes van der Merwe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 1:09 AM
To: 'Ant Users List'
Subject: RE: Using telnet task to connect to NT telnet server.
Have you tried "DOMAINNAME\USername"?
Kind regards
Jo van der Merwe
-----Original Message-----
From: Ramasubbu, Hari [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2002 02:15
To: Ant-User@Jakarta. Apache. Org (E-mail)
Subject: Using telnet task to connect to NT telnet server.
Hi
I need to launch a program in a remote NT server through telnet .. but the
problem is
the telnet deamon software which i use in theat NT machine need s a Domain
name also along with
the username and password.I saw the ant user manual for telnet in which it
has only username and password capabilities but not with domain name.
Any help is greatly appreciated.
Sincerely
Hari
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>