Created
March 9, 2011 10:32
-
-
Save ninehills/862003 to your computer and use it in GitHub Desktop.
Linux下用来延时执行命令的小脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 参数1:延迟的时间,单位s | |
# 参数2:需要执行的命令 | |
# example: | |
# delay 10 "conky -d" | |
sleep $1 | |
exec $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment