I saw and tried many solutions.
I used ps aux | grep script.py
to get the pid of the process. I got the following output: bioseq 24739 0.0 0.0 112884 1200 pts/1 R+ 13:20 0:00 grep --color=auto /script.py
, and then typed: kill 112884
and got the output 112884: No such process
.
I also tried a similar command with grep -i
, which yielded a different pid. kill <pid>
also yielded <pid> No such process
.