diff options
author | onefang | 2021-08-13 04:58:44 +1000 |
---|---|---|
committer | onefang | 2021-08-13 04:58:44 +1000 |
commit | 9df51435246039ccbe94ba1ca205d2d82ae65672 (patch) | |
tree | a61253d91e43b67a830eb55504796abed1d67e6d | |
parent | Start of dealing with members in the "sim" loop. (diff) | |
download | opensim-SC-9df51435246039ccbe94ba1ca205d2d82ae65672.zip opensim-SC-9df51435246039ccbe94ba1ca205d2d82ae65672.tar.gz opensim-SC-9df51435246039ccbe94ba1ca205d2d82ae65672.tar.bz2 opensim-SC-9df51435246039ccbe94ba1ca205d2d82ae65672.tar.xz |
Allow regex in the tmux wait function.
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 9be746f..fb8c3ec 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1056,7 +1056,7 @@ void waitTmuxText(char *dest, char *text) | |||
1056 | int i; | 1056 | int i; |
1057 | // Using " for the grep pattern, coz ' might be used in a sim name. | 1057 | // Using " for the grep pattern, coz ' might be used in a sim name. |
1058 | // TODO - should escape \ " ` in text. | 1058 | // TODO - should escape \ " ` in text. |
1059 | char *c = xmprintf("sleep 1; %s %s/%s capture-pane -Jt %s -p | grep -F \"%s\" 2>&1 > /dev/null", Tcmd, scRun, Tsocket, dest, text); | 1059 | char *c = xmprintf("sleep 1; %s %s/%s capture-pane -Jt %s -p | grep -E \"%s\" 2>&1 > /dev/null", Tcmd, scRun, Tsocket, dest, text); |
1060 | 1060 | ||
1061 | T("Waiting for '%s'.", text); | 1061 | T("Waiting for '%s'.", text); |
1062 | do | 1062 | do |