默认情况下,flock等待直到获得锁才执行命令。
flock [options] <file | directory> <command> [args] flock [options] <file | directory> -c <command> flock [options] <number>