Dear user/friends,
After a long gap of 6 years i am back to this forum to find a solution and i hope i will get a solution or atleast a workaround for the problem:p
Following is my task which i am trying for almost 3 days without any success.
1) run this command from my terminal (note i cannot change this command or alter)
ssh -N -f -L 50003:127.0.0.1:23 x.x.x.x; telnet 127.0.0.1 50003
2) This will login to remote machine with some banner messages it will ask me to select from list of free ports e.g.,
Select a terminal from the list below:
(17,18,20,21,22,24)
3) Now i need to pass any of these free port numbers i.e., 17
or 20
or 24
on remote terminal
Once port number is provided it will display the following:
Connection established as terminal 17.
>
4) now i need to pass
login:uid=someusername
and press enter button
It will display the following
Command entered at terminal #17.
;
Enter Password :
(Similarly i need to pass the password and press enter)
5) Once password is provided it will display the following
;
Command Executed
>
6) now i need to provide my command e.g., runjob
Once the above command is provided it will run for some time lets say for 2 mins or 5 mins
once completed it will display
Command Completed.
;
here i need to provide the command as:
ctrlkey+]
(control key plus the closing square bracket)
then it will display following:
telnet>
again i need to pass
quit
and press Enter
I will be really thankful if someone can provide me how to solve this problem.