Shell script to create a child process
vi clipro.sh
#!/bin/sh
echo "hello word'
sleep 5
Code parent
we fpro. sh
# ! / Bin / SH
Source / root / clipro. SH & # sure to add & background, so that the parent process will execute shell statement after the
clipid = $! # Obtain a child process PID
echo " wait1 "
SLEEP 3
the kill $ clipid # parent process is finished, the child can be killed by kill