LDP/LDP/guide/docbook/abs-guide/self-destruct.sh

11 lines
229 B
Bash

#!/bin/bash
# self-destruct.sh
kill $$ # Script kills its own process here.
# Recall that "$$" is the script's PID.
echo "This line will not echo."
# Instead, the shell sends a "Terminated" message to stdout.
exit 0