1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash echo started > block.log while true do if [ -f stop ] then break fi sleep 1 done echo stopped >> block.log