Nhật Hương
Member
How do you stop a running shell script in Unix?
Answer
Then use kill [PID] to stop it. If kill by itself doesn’t do the job, do kill -9 [PID] . If it’s running in the foreground, Ctrl-C (Control C) should stop it. Read the documentation on the ps command and familiarize yourself with its options.
Answer
Then use kill [PID] to stop it. If kill by itself doesn’t do the job, do kill -9 [PID] . If it’s running in the foreground, Ctrl-C (Control C) should stop it. Read the documentation on the ps command and familiarize yourself with its options.