aboutsummaryrefslogtreecommitdiff
path: root/kvmx-vdagent
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-02 17:41:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-02 17:41:54 -0300
commit992768e488f5b80c53920c3b6b1c05cb3d359078 (patch)
tree914e46d3a73ea23d4be6451991fc436dd8e46164 /kvmx-vdagent
parent60e58a4b52ca4d2659023a2a4b1626bc401d1aff (diff)
downloadkvmx-992768e488f5b80c53920c3b6b1c05cb3d359078.tar.gz
kvmx-992768e488f5b80c53920c3b6b1c05cb3d359078.tar.bz2
Use awk instead of cut at kvmx-vdagent
Diffstat (limited to 'kvmx-vdagent')
-rwxr-xr-xkvmx-vdagent2
1 files changed, 1 insertions, 1 deletions
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