Hai All,
I have problem with telnet task.
I am running a task in a unix platform
after i entered setup.sh command
this will ask for
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: _
I have to enter a value in the cursor position. after that
i will ask for confirmation message.
If i press enter key this will take some default path.and i wont
ask for any confirmation message.
I have written ANT telnet task for that,
<telnet userid="${rmuser}" password="${rmpass}" server="${server}"
initialCR="yes">
<write>setup.sh</write>
<read>ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE
DEFAULT</read>
<read> :</read>
<write >/home/fsqa1/testing</write>
<read> IS THIS CORRECT? (Y/N):</read>
<write>Y</write>
</telnet>
But what happened is ANT telnet gives enter key after it reads <read>
:</read>
string. and after that only it gives my value. so it is taking the default
and not asking
for confirmation message.
This is the ANT log:
[telnet] ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
[telnet]
[telnet] :
[telnet] /home/fsqa1/testing
it is keep on waiting for the confirmation message.
Is there any way to solve this problem.... HELP MEE...
Thsnks,
Nagarajan M.
|