I need to write a simple script for a UNIX machince, that when I type. transmit "cat admin.cfg^M", then I could have the result write to a interger or string.
Here is a little script that worked for me when connected to a Unix machine. The rget command is repeated three times since it terminates when a ^M is read. In my situation, the script was seeing the echo of the ^M character, then the carriage return sent by the Unix machine to go to the next line, then the third CR was at the end of the line containing the single line from admin.cfg.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.