From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 07:58:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4FC31065675 for ; Wed, 3 Dec 2008 07:58:53 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4A78FC17 for ; Wed, 3 Dec 2008 07:58:53 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: by an-out-0708.google.com with SMTP id b6so1333946ana.13 for ; Tue, 02 Dec 2008 23:58:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9/qoH7kgxQH7uwAs8oaKsfaZECASUJ+bqz9edeI9Cuw=; b=eMs0xWRHJAl0kx3HKzqy/exsAcB3HhSzh66DK0Uyk7pogXn9EhiXEgx8PEVRW9VDWG Bw+5wcx6dS8z+8iCv24Geid+B5/5k2CP1GZguOhHZH5R2LM+ronV9Ze5FP2pdEMCUhai nH4nk/T+iVW5ZyBMq4NsdC7q1Q596KVyRWDw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FkQv+n1C3mEqcdzwDO1DRvPEYCqvT/dPWLINMuCvDaPPi1R9FXm/GSsFf4ZLHuHFtm l1AE0LxqyQo90zF73jLxYD3m1ZzD1T54AGtqYLxoYnjJjZOxtjEVRu5mMon7vZF5ehV1 Kp8kivNTepLAXs8S+KA8vXnwuCMOITN4pTvK8= Received: by 10.100.197.3 with SMTP id u3mr7460454anf.64.1228291132521; Tue, 02 Dec 2008 23:58:52 -0800 (PST) Received: by 10.100.13.13 with HTTP; Tue, 2 Dec 2008 23:58:52 -0800 (PST) Message-ID: <30fc78250812022358v1970b4f6x6a1d6b3c9ca8f0c8@mail.gmail.com> Date: Wed, 3 Dec 2008 09:58:52 +0200 From: "Aggelidis Nikos" To: Polytropon In-Reply-To: <20081202093544.a5cb8a21.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <30fc78250812020007h22ab0dc4if044e46b4f36b00c@mail.gmail.com> <20081202093544.a5cb8a21.freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: open multiple xterms with script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 07:58:53 -0000 Thank you for your help! some additional questions: 1) is there any way to give the root password once? i tried this: #!/bin/sh su root -c "\ xterm -geometry 80x25 -title 'App 1' -e 'app1' & xterm -geometry 80x25 -title 'App 2' -e 'app2'\ " but i get this: xterm Xt error: Can't open display: %s 2) > Not very elegant and tidy, but should work. You could add some > checking to the first script mentioned so it gets a clue which > application is *not* running and restart it when called, not > starting those that are running again (second session). > i don't think i need something so complex. Is there any way to instruct xterm not to close after the execution of the program? So basically the idea is open 4 terminals, execute a specific command inside them but if the command finishes or stops, the terminal stays {with a new prompt}.