Last active
August 29, 2015 14:15
-
-
Save rohit-gupta/94cf4d290627a6d50577 to your computer and use it in GitHub Desktop.
Launch process in background with STDOUT and pid logged to files, later using pid kill said process
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
python helloworld.py > helloworld.out & echo $! > helloworld.pid | |
cat helloworld.pid | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment