when i directly run this commands separately raw data is coming so i want to store that raw data in a text file for which i have this above commands and saved as .sh extension and then tried to run as :
"sh myscript.sh >> mydata.txt"
but then to my data is not getting stored error is coming as:
@akrati1
Can you show us a manual session which works? What you post looks like a connection to a website or program which expects you to be using a browser ... but I could be wrong.
@panyam
I agree. You cannot use typeahead to telnet in that manner but there are other Shell techniques which work.
Let's find out if the O/P should be using telnet in the first place.