Diferencia entre revisiones de «Usuario:ManuelRomero/proyecto/proyectoIternova/borrador»
De WikiEducator
Línea 37: | Línea 37: | ||
if [ -z "$1" ] | if [ -z "$1" ] | ||
then | then | ||
− | gnome-terminal -e "docker exec -ti nagios1 bash" | + | gnome-terminal -e "docker exec -ti nagios1 bash" |
− | gnome-terminal -e "docker exec -ti nagios1 bash" | + | gnome-terminal -e "docker exec -ti nagios1 bash" |
− | gnome-terminal -e "docker exec -ti host1 bash" | + | gnome-terminal -e "docker exec -ti host1 bash" |
− | gnome-terminal -e "docker exec -ti host2 bash" | + | gnome-terminal -e "docker exec -ti host2 bash" |
− | + | gnome-terminal -e "docker exec -ti host3 bash" | |
+ | gnome-terminal -e "docker exec -ti host4 bash" | ||
+ | gnome-terminal -e "docker exec -ti host5 bash" | ||
+ | gnome-terminal -e "docker exec -ti host6 bash" | ||
+ | fi | ||
+ | |||
</source> | </source> |
Revisión de 07:21 8 sep 2017
docker start itenova docker start nagios1 docker start nagios2 docker exec iternova bash ./servicios docker exec nagios1 bash ./servicios docker exec nagios2 bash ./servicios gnome-terminal -e "docker exec -ti iternova bash" docker start host1 docker start host2 docker start host3 docker start host4 docker start host5 docker start host6 docker exec host1 ./services docker exec host2 ./services docker exec host3 ./services docker exec host4 ./services docker exec host5 ./services docker exec host6 ./services if [ -z "$1" ] then gnome-terminal -e "docker exec -ti nagios1 bash" gnome-terminal -e "docker exec -ti nagios1 bash" gnome-terminal -e "docker exec -ti host1 bash" gnome-terminal -e "docker exec -ti host2 bash" gnome-terminal -e "docker exec -ti host3 bash" gnome-terminal -e "docker exec -ti host4 bash" gnome-terminal -e "docker exec -ti host5 bash" gnome-terminal -e "docker exec -ti host6 bash" fi