Hi
i have developed a small application
i want to automate that...
it is a text mode application [not a GUI]
it runs from c

rogram exe is "bob.exe"
could you please writee a script for me to automatemy logon and move to next screen.
My logon screen is :[dos application/text mode]
----------------------------------------------------
USERNAME [ ]
PASSWORD [ ]
ctrl+X [Exit System]
----------------------------------------------------
Ok well my problem is to send USERname and Password simoultaneously.and then press enter to go to next screen
i used command: send "$user\t$pass\r" but what happens is it's just giving both id & password in some place.not in the designated columns:SO Logon is not happening
How to do that so that i can go to next screen:
----------------------------
HAI WELCOME
opt[]
-----------------------
Looking fwd for you valuable suggestion
code i developed:
set user SYS
set pass PASS /** password **/
cd $env(HOME) /**change to c:\ **/
spawn -noecho cmd
send "bob\r" /senidnng application command ie bob.exe **/
expect "Please enter your USERNAME" /*1st screen mesage**/
send "SYSMAN\t"
expect "and PASSWORD"
send "PASSWORD\r"
expect "Exit System" /*want to go to next screen*/
Please help me.