So I've done something like this:

$ while true; do ssh sysremote -CN; done & disown %

In the ps -ef only ssh sysremote -CN is listed.

How do I kill the while loop?

1 Answer 1


Nevermind. I figured it out.

You find the shell it spawned from, kill the shell, everything goes away

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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