[Ubuntu-zh] Shell下有功能类似 Python中 sys.sleep() 的命令吗?
Gwonder
wonderbeyond在gmail.com
星期日 九月 13 11:08:16 BST 2009
谢谢!!!还真是 sleep 这个关键词呀,呵呵...
LLY 写道:
> 天哪,把你代码中的 ‘seconds’ 去掉就好了
>
> 2009/9/13 Gwonder <wonderbeyond在gmail.com <mailto:wonderbeyond在gmail.com>>
>
> 是这样的, 我想把我添加的开机启动项按一定顺序执行, 而且一个程序
> 执行后
> 并不马上执行下一个, 而是先'睡'上几秒, 以避免刚刚开机时多个程序的集中轰
> 炸,以致我一时无法干任何事情. 我想这样写我的开机启动脚本:
>
> #!/bin/bash
> # 开机启动脚本
>
> sleep 2 seconds # 先等2秒再开始
> cairo-dock
> sleep 3 seconds
> stardict -h
> sleep 10 seconds # 这个不急
> gmail-notify
> # ... ...
> 谢谢!!!
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com <mailto:ubuntu-zh在lists.ubuntu.com>
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
More information about the ubuntu-zh
mailing list