From 4afed0aa2bf6ce0f1e8e634875d66468b74adbd5 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 18 Jul 2023 03:35:13 -0400 Subject: [PATCH] fix(tools): enable search full command in find tunnel parent processes --- tools/striker-manage-vnc-pipes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/striker-manage-vnc-pipes b/tools/striker-manage-vnc-pipes index ba3b977a..6f01d2f5 100755 --- a/tools/striker-manage-vnc-pipes +++ b/tools/striker-manage-vnc-pipes @@ -209,7 +209,7 @@ sub find_tp_processes $anvil->Log->variables({ source => $THIS_FILE, line => __LINE__, level => $debug, list => $parameters, prefix => "find_tp_processes" }); - my $ps_call = "$pgrep -a '$ps_name' | $sed -En 's/^([[:digit:]]+).*--target[[:space:]]+([^[:space:]]+).*--ctl-path[[:space:]]+([^[:space:]]+).*--tunnel-ls-path[[:space:]]+([^[:space:]]+).*\$/\\1,\\2,\\3,\\4/p'"; + my $ps_call = "$pgrep -af '$ps_name' | $sed -En 's/^([[:digit:]]+).*--target[[:space:]]+([^[:space:]]+).*--ctl-path[[:space:]]+([^[:space:]]+).*--tunnel-ls-path[[:space:]]+([^[:space:]]+).*\$/\\1,\\2,\\3,\\4/p'"; my ($rcode, $output) = call({ call => $ps_call, debug => $debug });