45 lines
608 B
Bash
45 lines
608 B
Bash
#!/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
|