{代码}& 另开线程执行,可以利用外部文件进行线程间通信
#!/bin/bash
bLoop="Start"
echo $bLoop>/tmp/bRun.tmp
{
printf "\33[?25l"
sleep 1
while [ $bLoop == "Start" ]
{代码}& 另开线程执行,可以利用外部文件进行线程间通信
#!/bin/bash
bLoop="Start"
echo $bLoop>/tmp/bRun.tmp
{
printf "\33[?25l"
sleep 1
while [ $bLoop == "Start" ]
1573
2167

被折叠的 条评论
为什么被折叠?