-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option 5 to the menu
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#Option 1 : Afficher les processus | ||
#Option 2 : Arrêter un processus | ||
#Option 3 : Quitter | ||
|
||
import os | ||
|
||
def affiche_processus(): | ||
print("Voici les processus qui sont en cours: ") | ||
processus = os.system("ps") | ||
print(processus) | ||
|
||
def stop_processus(): | ||
ps = input("Veuillez entrer le numero du processus a terminer: ") | ||
stop = os.system("kill -9 " + ps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters