[suicidal.sh]: add new suicidal.sh
This commit is contained in:
@ -5,3 +5,4 @@ repository to house scripts that were not useful enough to earn a place in there
|
|||||||
## Overview
|
## Overview
|
||||||
- `recursive.sh`: a script that calls itself.
|
- `recursive.sh`: a script that calls itself.
|
||||||
- `self_destruct.sh`: a script that deletes 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
4
suicidal.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# A script that kills the process that's executing it, i.e. itself
|
||||||
|
|
||||||
|
pkill "$(basename "$0")"
|
Reference in New Issue
Block a user