您的位置:首页 > 运维架构 > Shell

shell 进度条及启动另一个进程处理任务

2011-06-14 09:09 357 查看
(while true ; do echo -e ".\c";sleep 1; done)& #显示进度....

pid=$! #启动另一个进程

for module in `cat $dvtools/output/listmod.txt`

do

if [ `echo $module|wc -m` -gt 1 ]

then

module_path=`$MK_DIR/whichPath $module`

if [ "$module_path" = "" ]

then

echo "warning, no path found for $module!"

else

ls $module_path/incl/*.h* >> $dvtools/output/tmplist.txt

fi

fi

done

echo

kill $pid #结束任务处理进程
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: