This project was about DevOps
, Shell
, Bash
, Syscall
and Scripting
It had 12 mandatory tasks that helped me gain some practical knowledge about how to control certain processes in a Linux OS by sending signals using bash scripts.
A Bash script that displays its own PID
A Bash script that displays a list of currently running processes.
A Bash script that displays lines containing the bash
word, thus allowing the user to easily get the PID of the Bash process.
A Bash script that displays the PID, along with the process name, of processes whose name contain the word bash
A Bash script that displays To infinity and beyond
indefinitely.
A Bash script that stops 4-to_infinity_and_beyond process.
Requirements:
- You must use
kill
A Bash script that stops 4-to_infinity_and_beyond process.
Requirements:
- You cannot use
kill
orkillall
A Bash script that displays:
To infinity and beyond
indefinitely- With a
sleep 2
in between each iteration I am invincible!!!
when receiving a SIGTERM signal
Make a copy of your 6-stop_me_if_you_can
script, name it 67-stop_me_if_you_can
, that kills the 7-highlander
process instead of the 4-to_infinity_and_beyond
one.
A Bash script that kills the process 7-highlander
.