diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-04-02 17:41:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-04-02 17:41:54 -0300 |
commit | 992768e488f5b80c53920c3b6b1c05cb3d359078 (patch) | |
tree | 914e46d3a73ea23d4be6451991fc436dd8e46164 /kvmx-vdagent | |
parent | 60e58a4b52ca4d2659023a2a4b1626bc401d1aff (diff) | |
download | kvmx-992768e488f5b80c53920c3b6b1c05cb3d359078.tar.gz kvmx-992768e488f5b80c53920c3b6b1c05cb3d359078.tar.bz2 |
Use awk instead of cut at kvmx-vdagent
Diffstat (limited to 'kvmx-vdagent')
-rwxr-xr-x | kvmx-vdagent | 2 |
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 |