Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
evz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Тимофей Смирнов
evz
Commits
65cb4c2e
Commit
65cb4c2e
authored
Mar 07, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use docmd in exec
parent
cd7adf3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
evz-docker
bin/evz-docker
+1
-2
evz-vzctl
bin/evz-vzctl
+1
-1
No files found.
bin/evz-docker
View file @
65cb4c2e
...
@@ -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
...
...
bin/evz-vzctl
View file @
65cb4c2e
...
@@ -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,host
name,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment