help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp: how kill process


From: Bob Proulx
Subject: Re: tramp: how kill process
Date: Sun, 22 Nov 2015 13:58:22 -0700
User-agent: Mutt/1.5.24 (2015-08-30)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]