-1

I have a ksh script which I have started but now I want to stop it. The ksh, abc.ksh, takes hours to run and I want it to stop. I found the pid of the ksh using ps -ef and then did

kill -9 pid

When I did a ps -ef again the ksh is no longer here but I can see the log file where the ksh is writting still executing. The ksh I have executed call a java. Any idea how do I stop this java code from continuing to execute?

refresh
  • 1,319
  • 2
  • 20
  • 71

1 Answers1

1

Probably the ksh script you are referring to, starts another process (which is the one that actually produce the log. You have to find the pid of that process and kill that one.

gtosto
  • 1,381
  • 1
  • 14
  • 18
  • Yes but I can't seem to identify that process. Will the user be the same in both? – refresh Jul 07 '17 at 07:33
  • Probably it's the same, but it could be even different in theory (i.e sudo o something like that). Try to identify processes running java – gtosto Jul 07 '17 at 07:35