Skip to content

Instantly share code, notes, and snippets.

@ninehills
Created March 9, 2011 10:32
Show Gist options
  • Save ninehills/862003 to your computer and use it in GitHub Desktop.
Save ninehills/862003 to your computer and use it in GitHub Desktop.
Linux下用来延时执行命令的小脚本
#!/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