Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [process]

A process is a running instance of a program. Use this tag for how Emacs interacts with programs that it runs (compilers, viewers, network backends, etc.)

0
votes
1answer
207 views

Reuse tramp connection details to start putty session

I often connect to remote servers using tramp to do some work, however sometimes after editing files I need to connect using PuTTY in order to do some specific task. At the moment I open up PuTTY, ...
4
votes
0answers
422 views

How do I reliably get output from a process?

I have created a comint mode for using mongo. The mode works fine in the buffer, and now I am trying to use it programmatically where I need to get the output from commands. Getting input to the ...
3
votes
0answers
453 views

Run interactive shell script in new buffer using elisp

I am looking for a way to display and interact with long running shell scripts in a separate buffer. While using eshell works, I'd like to automate most shell tasks using elisp. The best way I came ...
3
votes
0answers
153 views

Shell coding system

If, before M-x shell, I run C-x RET c (universal-coding-system-argument) I can change the coding system used by the shell. Therefore, given echo Straße > foo foo will be encoded in the related ...
3
votes
0answers
59 views

Return System Notification When Long-running Comint Process Completes?

I often have long-running processes in comint shells (e.g. SQL or fitting statistical models, both usually via an R/ESS shell). While they're running I navigate away and do something in another ...
3
votes
0answers
179 views

Shutting down computer from emacs killing gracefully emacs itself

I am using EXWM on Arch as my windows manager. Substantially my startx launches exec dbus-launch --exit-with-session emacs so I am running only emacs and living inside it. I would like to define a ...
2
votes
0answers
227 views

How to get process name (or process) from PID in lisp?

I would like to check if my shell is running ssh or not by checking the process name. I tried to get the process name by: (let* ((proc (get-process "shell")) (proc-child-id (process-running-child-p ...
2
votes
0answers
175 views

make-network-process fails in Emacs 25

make-network-process fails on Emacs25 (25.1.50.2 2016-07-03) when loaded with -q and -Q and trying to eval the following example: (make-network-process :name "*server2*" :type nil ; stream :server ...
2
votes
0answers
148 views

Basic process management under Windows

I've got the following elisp: (setq proc (start-process "powershell" "*powershell*" "powershell.exe")) Unfortunately, I can't seem to get proc to do anything. For instance, in an normal shell, I ...
1
vote
0answers
34 views

How to make process in compilation-mode think it's not running in interactive terminal?

I use minitest-mode which starts Ruby tests in compilation-mode: (compilation-start actual-command 'minitest-compilation-mode (lambda (arg) (minitest-buffer-name (or file-name "")))) Tests invoke ...
1
vote
0answers
112 views

How to wait for command execution to complete in eshell

I guess I don't quite understand how to write commands for eshell. I am using the form: (defun eshell/command ()" " (interactive) (insert "command") (eshell-send-input)) When I do this it prints ...
1
vote
0answers
65 views

How can I make two running emacs processes to exchange text like in one?

When I have a running emacs process, before running another, I can make the running one a server, and then running the next as a client. When I have two emacs processes already running, how can I ...
0
votes
0answers
42 views

How can I make multiple calls to external binaries?

I want to write an interactive function to Call an external binary Write the output of the binary into a buffer Process the buffer to extracts args for next call Call another external binary using ...
0
votes
0answers
38 views

Check for active ERC process in Elisp and join channel

I try to join an IRC channel with ERC in my elisp script. If there is no active ERC process running I want to create one. So far I got this: (progn (if (not (and (fboundp 'erc-buffer-list) ...
0
votes
0answers
38 views

How to kill a running process in compilation buffer in MS Windows?

I have tried using M-x kill-compilation and it doesn't kill the process (on Microsoft Windows). It just sends ^C, which makes my script to retry. When I try to M-x kill-buffer on the compilation ...
0
votes
0answers
28 views

Emacs report a process which does not exist

When start Emacs from the terminal as me@mbp: ~$ emacs --deamon It prompts that However, there does not exist such a pocesses me@mbp~$ ps 8559 PID TTY STAT TIME COMMAND me@mbp:~$ ps -el ...
0
votes
0answers
47 views

Unknown *emacs* process

I recently realized that every time I lunch emacs, after a minute, a strange buffer appear in buffers list that is linked to an emacs process, infact it also appear in system's process list: When I ...
0
votes
0answers
47 views

Running a single Emacs instance

I'd like to set in my dot-emacs a function to detect if an Emacs instance is already running, possibly exiting Emacs informing user. To do this I should query the OS for running processes. However (...