From: Silvio Rhatto Date: Sun, 2 Apr 2017 20:41:54 +0000 (-0300) Subject: Use awk instead of cut at kvmx-vdagent X-Git-Tag: 0.1.0~465 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=992768e488f5b80c53920c3b6b1c05cb3d359078;p=kvmx.git Use awk instead of cut at 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