OpenWrt_Luci_Lua/1_3.test_code/sh_test/background_exec.sh

16 lines
163 B
Bash
Raw Permalink Normal View History

2015-07-02 14:53:31 +00:00
#!/bin/bash
function fileNum(){
while true
do
echo "sleep background"
sleep 5
done
}
fileNum &
while true
do
echo "sleep foreground"
sleep 1
done