Knowledge Search


×
 

[Archive] [ScreenOS] How to send quotation mark in the Secure CRT script

  [KB18341] Show Article Properties


Summary:

This article provides information on how to send quotation mark in the Secure CRT script.

Symptoms:

At times, we need to filter some of the output from the command line interface of ScreenOS in a SecureCRT script. For example:

nsISG1000a-> get sa stat | in "003< 203.148.10.58"
Solution:

You can use either a double quote or Chr(34) to accomplish this. Chr(124) is the equivalent of |.

In the SecureCRT script:

#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True

Sub Main
crt.Screen.Send "get sa stat " & chr(124) & " in " & chr(34) & "003< 203.148.10.58" & chr(34) & chr(13)
End Sub

*************************

 

#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True

Sub Main
crt.Screen.Send "get sa stat " & chr(124) & " in ""003< 203.148.10.58"" & chr(13)
End Sub

***********************


Both of the above scripts will generate the output below:

nsISG1000a-> get sa stat | in "003< 203.148.10.58"

Modification History:
2019-09-07:  Archived article.
Related Links: