Beispiele zum Blogpost.
This commit is contained in:
15
teil25/sighup.sh
Executable file
15
teil25/sighup.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
on_hup() {
|
||||
echo "hup handler"
|
||||
}
|
||||
|
||||
trap on_info SIGHUP
|
||||
|
||||
my_pid=$!
|
||||
echo "${my_pid}"
|
||||
while true; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user