标签:
业务背景:
解决方案:
代码如下:
s.sh
#!/bin/bash source /etc/profile; date='2015-05-06' echo 'start s.sh' sh a.sh $date > a.log 2>&1 & sh b.sh $date > b.log 2>&1 & echo 'end s.sh'a.sh
#!/bin/bash source /etc/profile; date=$1 echo 'start a.sh' echo 'today is '$date sleep 3s echo 'end a.sh'b.sh
#!/bin/bash source /etc/profile; date=$1 echo 'start b.sh' echo 'today is '$date sleep 3s echo 'end b.sh'
标签:
原文地址:http://blog.csdn.net/yeweiouyang/article/details/45539563