Skip to content

Instantly share code, notes, and snippets.

@xinyazhang
Created January 20, 2021 05:48
Show Gist options
  • Select an option

  • Save xinyazhang/d0d6a8a74f5fdd8f423821c10839dfea to your computer and use it in GitHub Desktop.

Select an option

Save xinyazhang/d0d6a8a74f5fdd8f423821c10839dfea to your computer and use it in GitHub Desktop.
Wait for the process of given pid to terminate
#!/bin/bash
tail --pid=$1 -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment