9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Mark van Atten <mark.vanatten@univ-paris1.fr>
To: 9fans@9fans.net
Subject: Re: [9fans] multiple acme instances with plan9port
Date: Thu,  8 Nov 2012 09:48:39 +0000	[thread overview]
Message-ID: <753db40a-1f08-48e4-84c1-83e2af76b168@googlegroups.com> (raw)
In-Reply-To: <CAG6Cn5bWus0_t_QJnJSaDGwTMp=Xg0xeR1O3zT+HHMx3LLfpWg@mail.gmail.com>

Two years or so ago I found the script below, allowing you to start any number of instances of acme. E.g. if you name the script acme9 you use
acme9 -n 1, acme9 -n 2, etc., each of which can followed by the usual arguments you wish to pass on to acme.

Thanks to whomever wrote this.

Mark.


#!/bin/sh

[ "$1" = -n ] && { export NAMESPACE=/tmp/ns.$USER.$2; mkdir -p "$NAMESPACE"; shift; shift;
}
9p ls plumb/ >/dev/null 2>/dev/null || (cd /; 9 plumber)


exec acme  "$@"



      parent reply	other threads:[~2012-11-08  9:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07 14:55 Ruslan Khusnullin
2012-11-07 15:53 ` Bence Fábián
2012-11-07 15:57   ` Sergio Perticone
2012-11-07 16:09     ` Bence Fábián
2012-11-07 16:22       ` Sergio Perticone
2012-11-07 16:45 ` Ethan Burns
2012-11-07 17:10 ` dexen deVries
2012-11-08  7:54   ` Ruslan Khusnullin
2012-11-08  9:48 ` Mark van Atten [this message]

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=753db40a-1f08-48e4-84c1-83e2af76b168@googlegroups.com \
    --to=mark.vanatten@univ-paris1.fr \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).