Hi, Thanks for all of ur kind help.I need to send an "enter" command to the device through my expect script.Is it possible?

Thanks,Sharmila.

Posted by admin (Graham Ellis), 6 December 2005

send "\r"

Although the usual new line character is \n when you're printing to screen or outputting to file, you use \r when outputting to a spawned process; \r is [Ctrl-M] or "carriage return" and \n is [Ctrl-J] or "line feed" in terms of characters generated

This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.