cat test1.sh. #!/bin/bash. set -e. lockfile= "/dev/shm/test". timeout= "5". exec 8>$lockfile. flock -w $timeout -x 8. for i in {1..10}.
確定! 回上一頁