Last active 1444608553

Script that waits for the specified process to start before returning

Revision 6f7c7000d087d817a4cf6c12959e35cc7fec4888

waitfor Raw
1#!/bin/bash
2until ps aux | grep -v grep | grep -v "waitfor" | grep "$1" > /dev/null
3do
4 sleep 0.1
5done