From 992768e488f5b80c53920c3b6b1c05cb3d359078 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 2 Apr 2017 17:41:54 -0300 Subject: Use awk instead of cut at kvmx-vdagent --- kvmx-vdagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmx-vdagent') diff --git a/kvmx-vdagent b/kvmx-vdagent index e938b74..258efe8 100755 --- a/kvmx-vdagent +++ b/kvmx-vdagent @@ -19,7 +19,7 @@ # # Get instances -instances="$(ps -o pid,command -e | grep "spice-vdagent$" | cut -d ' ' -f 2 | xargs)" +instances="$(ps -o pid,command -e | grep "spice-vdagent$" | awk '{ print $1 }' | xargs)" # Kill old instances for pid in $instances; do -- cgit v1.2.3