From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 8 Nov 2012 09:48:39 +0000 From: Mark van Atten Message-ID: <753db40a-1f08-48e4-84c1-83e2af76b168@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 References: Subject: Re: [9fans] multiple acme instances with plan9port Topicbox-Message-UUID: d4df54d0-ead7-11e9-9d60-3106f5b1d025 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 "$@"