From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 04:58:22 2003 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 D680337B401 for ; Sat, 5 Apr 2003 04:58:22 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-122.pit.adelphia.net [24.53.161.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21F2343F85 for ; Sat, 5 Apr 2003 04:58:22 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h35CwLJP011153; Sat, 5 Apr 2003 07:58:21 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E8EC9CB.30601@potentialtech.com> Date: Sat, 05 Apr 2003 07:19:23 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sergey dyshel References: <20030405124415.30157.qmail@web41206.mail.yahoo.com> In-Reply-To: <20030405124415.30157.qmail@web41206.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd Subject: Re: Is there a command for Unix which can detach process fromconsole and wait until its finish? 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: Sat, 05 Apr 2003 12:58:23 -0000 sergey dyshel wrote: > Hi > > I have one problem with '.xinitrc' file. I need to run > IceWM, detach it from console and wait until IceWM > exits. I know about 'detach' utility for Unix which > runs process, detaches it but doesn't wait. So when I > place "exec detach icewm" in the end of my '.xinitrc' > X server shuts down immediately after starting icewm > which isn't what I want. Is there a programm like > 'detach' which does't exit until detached process is finished? I can not conceive of what you are trying to accomplish, but ... Have you tried detaching the startx process instead of the icewm process? -- Bill Moran Potential Technologies http://www.potentialtech.com