Sample Header Ad - 728x90

Halt execution of pasted multiline commands

1 vote
2 answers
1585 views
I pasted a long list of commands into Bash, and in the middle of execution, I decided I wanted it to stop. Ctrl+Z and Ctrl+C did nothing. It just continues executing line after line. In the end, the commands required a service to be running, so I stopped that instead using another SSH instance, and the commands errored out one after the other. If I hadn't been able to stop a service to do that, how would I stop the list from continuing to execute?
Asked by mbomb007 (123 rep)
Dec 7, 2021, 10:05 PM
Last activity: Dec 8, 2021, 02:30 AM