Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Waiting for $@ to exit"
- while [ "$(ps -C $@ | grep $@)" != "" ]; do
- sleep 3;
- done;
- echo "$@ doesn't show up in the process list"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement