Hi Guys and Girls, I am using Expect perl module to connect to a another machine via ssh and execute some simple commands. This is working well except that if I get input via STDIN then it appears that further commands get ctrl-G appended at the end of words. As an example, the command I execute is:
enable config system file-mgtn remove tag xxxx type crash-info local-file abc.log
The output I get from the log is
enable config system file-mgtn^G remove^G tag^G xxxx^G type^G crash-info^G local-file^G abc.pl
This looks to me like random garbage but the odd thing is it comes out exactly the same every time.
I think I'm doing something wrong because most of the output I get has extra /r or /n in it (it gives 3 times as many as it should).
Thanks in advance for any replies.
Cheers,
Michael