Advertisement
Eeems

iskilled

Sep 2nd, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Waiting for $@ to exit"
  3. while [ "$(ps -C $@ | grep $@)" != "" ]; do
  4.         sleep 3;
  5. done;
  6. echo "$@ doesn't show up in the process list"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement