Last active 1444608553

Script that waits for the specified process to start before returning

Steven Smith revised this gist 1444644552. Go to revision

1 file changed, 5 insertions

waitfor(file created)

@@ -0,0 +1,5 @@
1 + #!/bin/bash
2 + until ps aux | grep -v grep | grep -v "waitfor" | grep "$1" > /dev/null
3 + do
4 + sleep 0.1
5 + done
Newer Older