Expect Send

Dear All,

I wanna write a script in which it expect something and if it gets whats expected then send the command relating to that.

for instance

Userame: Asad
Required Password for Asad: ******

I tried to use the expect key word but its does not work.

I am using Solaris 8/9

If any one can help me in this regard, just let me know,

Thanks.

BR/

Asad

Why dont' you use the conditional scripting i.e if then fi
or the Test conditions for each character being typed.