unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Russell <jorussel@cisco.com>
Subject: Re: run external command and let it go
Date: 25 Sep 2003 12:20:51 -0400	[thread overview]
Message-ID: <m3llscyh3w.fsf@cisco.com> (raw)
In-Reply-To: m3pthoyhp6.fsf@cisco.com

John Russell <jorussel@cisco.com> writes:

> Can anyone tell me how I can run an external process (like a temrinal
> or a browser) from emacs.  I know shell-command does this, but I
> really don't care about the output of the command, so the Shell output
> and Async output buffers are just annoying when they come up.  I
> really just want to launch a command and then be done with it.  Any
> ideas? Thanks.
> 
> John

Does anyone have a better idea than this?  It just seems like it
should be easier than this.

Plus, every once in a while my process doesn't run because it a
hungup.  But only some times. I hate race conditions.

(defun open-terminal-here ()
  "Opens the terminal defined by the variable terminal-program at
the current working directory."
  (interactive)
  (let (current-config)
    (setq current-config (current-window-configuration))
    (shell-command (concat terminal-program "&"))
    (kill-buffer "*Async Shell Command*")
    (set-window-configuration current-config)
    ))

John

  reply	other threads:[~2003-09-25 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25 16:08 run external command and let it go John Russell
2003-09-25 16:20 ` John Russell [this message]
2003-09-25 18:41 ` Stefan Monnier
2003-09-26 14:47   ` John Russell

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m3llscyh3w.fsf@cisco.com \
    --to=jorussel@cisco.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).