Commit 65cb4c2e authored by Vitaly Lipatov's avatar Vitaly Lipatov

use docmd in exec

parent cd7adf3c
...@@ -160,8 +160,7 @@ case $CMD in ...@@ -160,8 +160,7 @@ case $CMD in
################################### ###################################
for i in $LIST ; do for i in $LIST ; do
showcmd docker exec -ti $SETLANG "$i" "$@" docmd docker exec -ti $SETLANG "$i" "$@"
a= docker exec -ti $SETLANG "$i" "$@"
done done
;; ;;
enter) # HELPCMD: enter in a container with ID enter) # HELPCMD: enter in a container with ID
......
...@@ -171,7 +171,7 @@ case $CMD in ...@@ -171,7 +171,7 @@ case $CMD in
#vzctl exec $i "$INCMD" | sed -e "s|^|$(printf "%3d: " $i)|g" #vzctl exec $i "$INCMD" | sed -e "s|^|$(printf "%3d: " $i)|g"
#vzctl exec $i "$INCMD" #vzctl exec $i "$INCMD"
# TODO: internal IP, red if internal hostname differs # TODO: internal IP, red if internal hostname differs
showcmd vzlist $LIST -o ctid,ip,hostname,diskspace docmd vzlist $LIST -o ctid,ip,hostname,name,diskspace
#done #done
;; ;;
load) # HELPCMD: print load average for container(s) by list load) # HELPCMD: print load average for container(s) by list
......
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