cours0708/A61/FASD/launch.sh

45 lines
608 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "rmiregistry 1664&"
rmiregistry 1664&
sleep 1
echo
# le parent & l'entrée dans l'arbre
java ArbreNoeud n1&
sleep 1
echo
# n1 a 3 fils
java ArbreNoeud n2 n1&
sleep 1
java ArbreNoeud n3 n1&
sleep 1
java ArbreNoeud n4 n1&
sleep 1
echo
# n2 a 2 fils
java ArbreNoeud n5 n2&
sleep 1
java ArbreNoeud n6 n2&
sleep 1
echo
# n4 a 3 fils
java ArbreNoeud n7 n4&
sleep 1
java ArbreNoeud n8 n4&
sleep 1
java ArbreNoeud n9 n4&
sleep 1
# n1
# |
# ------------
# | |  |
# n2 n3 n4
# ----- ---------
# | | | | |
# n5 n6 n7 n8 n9