Monitoring? [1]

Monitoring?

Tuesday, May 8, 2018 3:45 PM - Brett Webb

I've noticed in the "Key Features" for XShell 6, string monitoring is listed as a feature under "Various Bell/Alarm Options".

Out of curiosity, how does one go about actually enabling/using this feature? Let's say I'm looking for a specific string, and want to be notified when that string appears in a session. How can I configure XShell to alert me when that happens?

I couldn't find anything in the manual on how to do this.

Thanks!

Program Ver. : Xshell 6


Re: Monitoring?

Thursday, May 10, 2018 6:03 PM - Support

I believe you may have misunderstood the feature. It mentions that string based alarms may be insufficient, not that alarms can sound based on strings.

Xshell 6 allows for Highlighting strings if you are monitoring the terminal, but this is visually based (font and color effects).

There's a way to achieve what you would like, however. You can explicitly input code for the bell where and when you want to look inside/use a script for audio based effects. For example, if some batch jobs are completed, to make a bell sound or bell effect occur:

$ make ; echo -e "\007"

When an expected string is shown in the terminal, to use a bell effect you can use a script:

sub main
expStr = Array("fail", "warning")
xsh.Screen.WaitForStrings expStr, 0
xsh.Screen.send chr(7)
end sub

Let me know if this helps.

Your desired effect (bell upon expected string) is an interesting one and we'll discuss this feature to improve our bell and highlight functionality.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog


Previous views: 256