nohup my_command > my.log 2>&1 & echo $! > save_pid.txt
kill -9 `cat save_pid.txt` rm save_pid.txt
References
https://stackoverflow.com/questions/17385794/how-to-get-the-process-id-to-kill-a-nohup-process
nohup my_command > my.log 2>&1 & echo $! > save_pid.txt
kill -9 `cat save_pid.txt` rm save_pid.txt
References
https://stackoverflow.com/questions/17385794/how-to-get-the-process-id-to-kill-a-nohup-process