From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 23:23:04 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E996716A4CE for ; Thu, 31 Mar 2005 23:23:04 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 34A3F43D49 for ; Thu, 31 Mar 2005 23:23:02 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 30167 invoked from network); 31 Mar 2005 23:23:01 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 31 Mar 2005 23:23:01 -0000 X-pair-Authenticated: 200.115.214.28 Date: Thu, 31 Mar 2005 20:23:52 -0300 From: Alejandro Pulver To: Gert Cuykens Message-ID: <20050331202352.20c58955@ale.varnet.bsd> In-Reply-To: References: X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: .xinitrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 23:23:05 -0000 On Fri, 1 Apr 2005 01:06:15 +0200 Gert Cuykens wrote: > How do you start two things ? > > exec unclutter -root > exec enlightenment > > When i do this it only execute the first one Hello, The 'exec' builtin (internal shell command) replaces the current process image (the shell itself) by the program in the argument. Instead of executing it as a children (separated) process, so when the process finishes it returns back to the shell (like typing a command). So when the shell replaces itself with 'unclutter', it is not the shell anymore, so it never comes back to execute 'enlightenment'. The solution can be to run the first command in the background (apart from the shell) like this: unclutter -root & exec enlightenment See sh(1) (section 'exec' and 'jobs'). Best Regards, Ale