git.svenne.dk
/
public
/
kvm-scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added autostart-all and autostop-all
[public/kvm-scripts.git]
/
list-running.sh
1
#!/bin/bash
2
#ps aux | grep [q]emu | grep -P -o "\-name ([^ ]*) .* -vnc ([^ ]*) " | cut -b 7-
3
ps aux | gawk '/qemu/ {match($0,"-name ([^ ]*).*-vnc ([^ ]*)", a) ; print(a[1], "pid " $2, a[2])} ' | grep -v "(\[^"