If I kick off a long running command like a database dump using exec
, how would I go about canceling that command on the remote host if, for example, the user start mashing Control-C to kill the script.
In my testing it seems like even if you Control-C and kill the application the remote command keeps running.