<p>sleep</p>
<p><blockquote type="cite">On Sep 13, 2009 5:42 PM, &quot;Gwonder&quot; &lt;<a href="mailto:wonderbeyond@gmail.com">wonderbeyond@gmail.com</a>&gt; wrote:<br><br> &nbsp; &nbsp;是这样的, 我想把我添加的开机启动项按一定顺序执行, 而且一个程序执行后<br>
并不马上执行下一个, 而是先&#39;睡&#39;上几秒, 以避免刚刚开机时多个程序的集中轰<br>
炸,以致我一时无法干任何事情. 我想这样写我的开机启动脚本:<br>
<br>
 &nbsp; &nbsp;#!/bin/bash<br>
 &nbsp; &nbsp;# 开机启动脚本<br>
<br>
 &nbsp; &nbsp;sleep 2 seconds # 先等2秒再开始<br>
 &nbsp; &nbsp;cairo-dock<br>
 &nbsp; &nbsp;sleep 3 seconds<br>
 &nbsp; &nbsp;stardict -h<br>
 &nbsp; &nbsp;sleep 10 seconds # 这个不急<br>
 &nbsp; &nbsp;gmail-notify<br>
 &nbsp; &nbsp;# ... ...<br>
谢谢!!!<br>
<font color="#888888"><br>
<br>
--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
</font></blockquote></p>