Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-27-2018, 08:59 AM
Hang Hang is offline
Registered User
Join Date: Jul 2016
Posts: 18
Procomm to SecureCRT

In procomm there are two ways to display text on the terminal. You can do it using transmit and termmsg.

transmit string [RAW]:Sends a character string to the active port. If local echo is on, transmit echoes the string to the Terminal display.

termmsg string | {formatstr arglist} [RAW]:Writes a formatted string to the Terminal window at the current cursor location, updating that location accordingly. termmsg does not process caret ("^") sequences.

The SecureCRT equivalent to Procomm "transmit" is crt.Screen.Send. I was wondering if there is a SecureCRT equivalent for "termmsg"?

The difference between the two is huge. Here is an example of both.

If I use transmit: "^M" is equivalent to pressing 'r'n.

transmit "hello world!^M"
transmit "hello earth!^M"
OUTPUT on terminal: The router OS is expect keyword command hence the bad command prompt from the OS.

*A:# hello world!
Error: Bad command.
*A:# hello earth!
Error: Bad command.
If I use termmsg:
termmsg "hello world! 'r'n"
termmsg "hello earth! 'r'n"
OUTPUT on terminal: you see how it does not provoke the OS to check for a keyword command and it output the messages nicely, no bad command message.
*A:# hello world!
hello earth!
My question is that, is there an equivalent command in SecureCRT that will do what "termmsg" does in Procomm?

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 10:42 AM.