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 #结束任务处理进程
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 #结束任务处理进程
相关文章推荐
- ShellExecuteEx启动WORD进程关不掉的处理
- Linux启动中init进程的处理(转)
- shell脚本检查进程是否启动
- windows2003 IIS 服务启动失败,提示‘另一个程序正在使用此文件,进程无法访问',解决方法!
- Java定时启动任务以及Heritrix超时处理
- WinXP启动后显示器无信号可看到启动进度条该如何处理
- 在linux如何在程序中调用shell命令启动另一个程序
- linux ulimit命令参数及用法详解--linux限定shell启动进程资源
- shell浅谈之九子shell与进程处理 http://blog.csdn.net/taiyang1987912/article/details/39529291
- 在linux中安装jdk以及tomcat并shell脚本关闭启动的进程
- system用户进程或服务进程以特定用户启动其他程序的处理
- linux启动、进程、文本处理
- shell 脚本监控程序是否正在执行, 如果没有执行, 则自动启动该进程
- MapReduce剖析笔记之七:Child子进程处理Map和Reduce任务的主要流程
- 用shell脚本监控进程是否存在 不存在则启动的实例
- Splash界面/启动界面中处理耗时任务
- c#的Process启动另一个进程作为程序的一个界面
- PHP后台多进程任务处理类
- shell通过进程来判断多个redis服务是否都启动
- 用shell脚本监控进程是否存在 不存在则启动的实例