Commit e7f1ef55 authored by Vitaly Lipatov's avatar Vitaly Lipatov

evz-qm list: list only running by default

parent 3ef863ce
...@@ -25,7 +25,7 @@ list_all() ...@@ -25,7 +25,7 @@ list_all()
return return
fi fi
a= qm list | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter a= qm list | grep "running" | grep "[0-9]\+" | sed -e "s| *\([0-9]\+\) .*|\1|" | line_filter
} }
# list all containers (or by arg list) # list all containers (or by arg list)
...@@ -132,8 +132,11 @@ case $CMD in ...@@ -132,8 +132,11 @@ case $CMD in
get_list "$@" get_list "$@"
exit exit
fi fi
docmd qm list "$@" if [ "$1" = "-a" ] || [ "$1" = "--all" ] ; then
#info "See evz ports ID for print ports" docmd qm list
else
docmd qm list | grep running
fi
;; ;;
exec) # HELPCMD: execute command by list (all for all containers) exec) # HELPCMD: execute command by list (all for all containers)
INCMD="$1" INCMD="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment