the wait_pid command -- (ruby gem/binary for waiting on an arbitrary external pid, doze/linux supported)
rdp
gem "wait_pid", "~> 0.2.0"