This repository was archived by the owner on Dec 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprocessmgmt
More file actions
executable file
·51 lines (46 loc) · 1.41 KB
/
processmgmt
File metadata and controls
executable file
·51 lines (46 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
while true; do
clear
echo
echo ' ____ '
echo ' / __ \_________ ____ ___ __________ '
echo ' / /_/ / ___/ __ \/_ / / _ \/ ___/ ___/ '
echo ' / ____/ / / /_/ / / /_/ __(__ |__ ) '
echo ' /_/ /_/ \____/ /___/\___/____/____/ '
echo ' ____ '
echo ' _ _____ ______ ______ _/ / /___ ______ ____ _'
echo ' | | / / _ \/ ___/ | /| / / __ `/ / __/ / / / __ \/ __ `/'
echo ' | |/ / __/ / | |/ |/ / /_/ / / /_/ /_/ / / / / /_/ / '
echo ' |___/\___/_/ |__/|__/\__,_/_/\__/\__,_/_/ /_/\__, / '
echo ' /____/ '
echo
echo
echo ' (1) Prozesse anzeigen'
echo ' (2) Prozesse mit einem bestimmten Namen anzeigen'
echo ' (3) Prozess töten'
echo ' (x) exit'
echo
read -n 1 selection
case $selection in
1)
ps aux
echo ">>> Zurück zum Menü, irgendeine Taste drücken <<<"
read -n 1 uselessvariable
;;
2)
echo "Welcher Name soll der Prozess enthalten?"
read name
ps aux|grep $name
echo ">>> Zurück zum Menü, irgendeine Taste drücken <<<"
read -n 1 uselessvariable
;;
3)
ps aux
echo
echo "Welcher Prozess soll getötet werden? (ID)"
read process
kill -9 $process
;;
"x") exit; ;;
esac
done