我有一个简单的shell脚本,其也低于:启动和监控shell脚本内处理完成
#!/usr/bin/sh
echo "starting the process which is a c++ process which does some database action for around 30 minutes"
#this below process should be run in the background
<binary name> <arg1> <arg2>
exit
现在,我要的是监控和显示过程的状态信息。 我不想深入了解它的功能。由于我知道该过程将在30分钟内完成,因此我想向用户展示3.3%每1分钟完成一次,并检查过程是否在后台运行,最后如果过程完成,我想要显示它已完成。
有人可以帮我吗?
请参见[流程管理](HTTP ://mywiki.wooledge.org/ProcessManagement)。 – 2012-08-03 12:28:41