all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: Paul <mafeuser@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: tramp: how kill process
Date: Sun, 22 Nov 2015 13:58:22 -0700	[thread overview]
Message-ID: <20151122135536697066500@bob.proulx.com> (raw)
In-Reply-To: <56521FE7.3040703@gmail.com>

Paul wrote:
> >>Unfortunatelly the following does not kill it:
> >>
> >>C-x C-f "/sudo::/root"
> >>M-x: (kill-process "my-process-name")
> >
> >`kill-process' needs a process as argument, not a process name.
> >
> >>How to do it in elegant way then?

I don't know how elegant this is but if worst comes to worst you can get
a ps listing and then kill the associated ssh process.

  $ ps -efH | less
  /emacs
  ...look for ssh process associated with that emacs...
  $ kill 123

For example:

  $ ps -efH | less
  rwp      24638     1  0 Oct23 ?        00:03:31   /usr/bin/emacs
  rwp       5215 24638  0 13:55 pts/62   00:00:00     ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none despair
  $ kill 5215

Bob



  reply	other threads:[~2015-11-22 20:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-22 18:03 tramp: how kill process Paul
2015-11-22 18:46 ` Michael Albinus
2015-11-22 20:04   ` Paul
2015-11-22 20:58     ` Bob Proulx [this message]
2015-11-22 20:21   ` Paul
2015-11-22 20:26   ` Paul
2015-11-22 20:30     ` Paul
2015-11-22 21:34       ` Michael Albinus
2015-11-23 13:09         ` Paul
2015-11-23 13:12         ` Paul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151122135536697066500@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mafeuser@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.