Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!mips!bridge2!jarthur!ucivax!megatek!hollen From: hollen@megatek.UUCP (Dion Hollenbeck) Newsgroups: comp.emacs Subject: Re: Shell mode with more than one shell? Message-ID: <673@tau.megatek.uucp> Date: 20 Aug 90 19:02:24 GMT References: <1990Aug20.055736.12250@solar.card.inpu.oz.au> Organization: Megatek Corporation, San Diego, Ca. Lines: 51 From article <1990Aug20.055736.12250@solar.card.inpu.oz.au>, by brett@solar.card.inpu.oz.au (Brett Sealey): > Is there a way to have more than one inferior shell process running under > emacs? > > What I want is a "nice" way of having a few interactive shells running at > the same time in different buffers. e.g. *shell-1* *shell-2* etc... > > Why shell mode doesn't let you do this already is a mystery to me. > Here is what I use. However, all my shell's names are prefaced with '-' because I would have to use the shift key to produce * and I like as few keystrokes as possible. The code also includes an example to rlogin into another machine in one of the shells in case you need to compile on more than one platform at a time. ;; define function to start up another shell in a buffer (defun beginshell () (interactive) (shell) ) ;; ;; set up shell processes in lots of windown ;; ; first shell is an rlogin to another host (beginshell) (rename-buffer "-icp") (insert "rsh akbar") (shell-send-input) ; the rest of these are just 4 shells on current machine (beginshell) (rename-buffer "-dshell") (beginshell) (rename-buffer "-cshell") (beginshell) (rename-buffer "-bshell") (beginshell) (rename-buffer "-ashell") ; you are left "logged in" to -ashell when this completes -- Dion Hollenbeck (619) 455-5590 x2814 Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121 uunet!megatek!hollen or hollen@megatek.uucp