30 lines
439 B
Markdown
30 lines
439 B
Markdown
# Gestion des processus
|
|
|
|
## Atelier
|
|
|
|
Lancer le script wait.sh
|
|
|
|
```bash
|
|
./wait.sh
|
|
```
|
|
|
|
|
|
Identifiez-le, notez son identifiant
|
|
|
|
```bash
|
|
ps -ef | grep wait.sh
|
|
```
|
|
envoyez-lui les signaux SIGINT, puis SIGTERM
|
|
|
|
|
|
```bash
|
|
kill -SIGINT 637876 # pid récupéré précédemment.
|
|
kill -SIGTERM 637876 # pid récupéré précédemment.
|
|
|
|
```
|
|
envoyez-lui un signal l'obligeant à se terminer
|
|
|
|
```bash
|
|
kill -9 637876 # pid récupéré précédemment.
|
|
```
|