Created
August 22, 2023 18:06
-
-
Save thejohnfreeman/3b206cabd4a4b57747917ee999c7481f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm start & | |
# echo sleep 100 | bash & | |
pid=$! | |
gid=$(echo $(ps -o pgid= $pid)) | |
ps -jH -$gid | |
kill -SIGKILL $pid | |
ps -jH -$gid | |
kill -SIGTERM -$gid | |
reset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment