SSH Shell for mainframe

Hi Everyone!

 

 

Hi

 

I am using the SSH Sheel operation and it has two levels of login (more over like unix sduo -u), frist level i am able to login with OO input parameters (username, password), the scond level login, i need to use command called LOGON username then it asks for password.

 

once i logn to mainframe shell, i need type gtacl and it will come to a prompt TACL 1>,  then type LOGON username and press enter then it asks for password. Now how do i handle this SSH shell operation.

 

I tried using Command send and expect but it is not working for me,

 

Send gtacl

expect (.*\s*)*>

send LOGON username

 

 

Please help me

 

Thanks

Tags: