Wait for Proc to Term by PID

/ Published in: Bash
Save to your folder(s)

Uses jboss in this example

Copy this code and paste it in your HTML
  1. while ps $JBOSS_PID > /dev/null
  2. do
  3. sleep 5
  4. echo Waiting for Jboss PID $JBOSS_PID to terminate
  5. done

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.