-4

I made an .sh file load.sh which has (almost) unlimited loop of curl requests. I run this as $ bash load.sh. Now it just keeps running the loop. I can't cancel its execution. It keeps running. I pressed ctrl+c to cancel but it starts again. I closed the terminal window. But in background script is still running. how do I get rid of it?

0

get the pid and kill the process. Its a beginner question

ps -ef | grep [l]oad.sh  # second column is the PID

kill <PID>

Not the answer you're looking for? Browse other questions tagged or ask your own question.