Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash stop nohup job

# Basic syntax:
ps -ef | grep nohup
kill -9 job_PID
# Where:
#	- ps reports a snapshot of the current processes
#	- -e selects all processes
#	- -f list additional fields including PID
#	- kill -9 stops the process and cannot be blocked

# Example usage:
ps -ef | grep nohup
--> croy     46576 45095  0 16:14 pts/19   00:00:00 ...
kill -9 46576
Source by www.unix.com #
 
PREVIOUS NEXT
Tagged: #bash #stop #nohup #job
ADD COMMENT
Topic
Name
4+9 =