9 lines
121 B
Bash
Executable File
9 lines
121 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Starting child $1..."
|
|
while kill -0 "$2" 2>/dev/null
|
|
do
|
|
sleep 0.01s
|
|
done
|
|
echo "$1 outlived parent."
|