[suicidal.sh]: add new suicidal.sh

This commit is contained in:
2024-08-08 23:51:39 +01:00
parent e292804b22
commit 43e4f47d12
2 changed files with 5 additions and 0 deletions

View File

@ -5,3 +5,4 @@ repository to house scripts that were not useful enough to earn a place in there
## Overview
- `recursive.sh`: a script that calls itself.
- `self_destruct.sh`: a script that deletes itself.
- `suicidal.sh`: a script that kills the process that's executing it, i.e. itself.

4
suicidal.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# A script that kills the process that's executing it, i.e. itself
pkill "$(basename "$0")"