From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 08:07:48 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 7875F106564A for ; Tue, 2 Dec 2008 08:07:48 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 442388FC13 for ; Tue, 2 Dec 2008 08:07:48 +0000 (UTC) (envelope-from aggelidis.news@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1150039yxb.13 for ; Tue, 02 Dec 2008 00:07:47 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=z8vdY3H7idjAblbLdtwlvQc220sBo4NFgPpgyqpWYts=; b=sODY8rPxZhQmgrukxHs82tICxb20aOTtXhDnvUK4K9lwzdKBLVtEJoh2RxlOxX5g6U 8v4VJM052Ij5iuaMP9/27mNZf42jjyhoT5e7GwIQ95Ic0Qr9BtPqu/8vrpvACckejifW X+cf3j3PP37KWOPwKU378JNXjr8xj3T8plcvw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ADZW45UbUg3vFFcGSm8RInzarZ3c8eJw5QJyu8bsgoQk5m/g05G7EuspfHMS+dA7qI DKz/yhpF0E1ujL4VQ3CRHH8ze83XD/xtoVwybadVbx62Y/7dTuMBToJW0V8SMdUFebYV 7ksR5/a4idnm9Dm/33GwwpqQfvtotig98Et+w= Received: by 10.100.178.2 with SMTP id a2mr6465670anf.114.1228205267537; Tue, 02 Dec 2008 00:07:47 -0800 (PST) Received: by 10.100.13.13 with HTTP; Tue, 2 Dec 2008 00:07:47 -0800 (PST) Message-ID: <30fc78250812020007h22ab0dc4if044e46b4f36b00c@mail.gmail.com> Date: Tue, 2 Dec 2008 10:07:47 +0200 From: "Aggelidis Nikos" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Tue, 02 Dec 2008 08:07:48 -0000 hi to all the list, i need some help... Is it possible to open four consoles as root(authenticate yourself once), in each one run a specific program and do this through a script? {bash or python). i want to open 4 xterms in the four corners of the screen. In 3 xterms i want to run specific applications needing root privileges and the last i want it for administrative purposes. what i have so far: sudo xterm -e "path/to/application1" & sudo xterm -e "path/to/application2" & sudo xterm -e "path/to/application3" & sudo xterm But this approach has the following problems: 1) i have only managed to get it to work as sudo not su 2) i haven't managed to position the 4 terminals correctly in the 4 corners of the screen 3) i want to be able to close and restart a single terminal.without running again the whole script (this i am not sure if it is even doable). For example if one of the applications hungs, then i want to be able to restart this application, without running the whole script again. thanks in advance for your help, nicolas