July 2018
Beginner
264 pages
8h 9m
English
Let's start our activity as follows:
#!/bin/bashfunction setup() { trap "cleanup" SIGINT SIGTERM echo "PID of script is $$"}function cleanup() { echo "cleaning up" exit 1}setup# Loop forever with a noop (:)while :do sleep 1done
Read now
Unlock full access