Skip to content

Commit

Permalink
added virt-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
larsks committed Oct 7, 2013
1 parent 87fc9a0 commit 3fecd05
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions virt-pick
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

tmpfile=$(mktemp -t .virtpickXXXXXX)
virsh list --name "$@" | grep -v '^$' > $tmpfile

dialog --menu "Select a domain" 40 60 30 $(sed = < $tmpfile) 2> $tmpfile.selected
sed -n $(cat $tmpfile.selected)p $tmpfile
rm -f $tmpfile $tmpfile.selected

0 comments on commit 3fecd05

Please sign in to comment.