From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 05:25:09 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 8475237B401 for ; Sat, 5 Apr 2003 05:25:09 -0800 (PST) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E4543F93 for ; Sat, 5 Apr 2003 05:25:08 -0800 (PST) (envelope-from johnmills@speakeasy.net) Received: (qmail 13762 invoked from network); 5 Apr 2003 13:25:08 -0000 Received: from unknown (HELO localhost.localdomain) ([216.27.162.100]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Apr 2003 13:25:08 -0000 Received: from localhost (jmills@localhost) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h35DUql08958; Sat, 5 Apr 2003 08:30:53 -0500 X-Authentication-Warning: localhost.localdomain: jmills owned process doing -bs Date: Sat, 5 Apr 2003 08:30:52 -0500 (EST) From: John Mills X-X-Sender: jmills@localhost.localdomain To: sergey dyshel In-Reply-To: <3E8EC9CB.30601@potentialtech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd Subject: Re: Is there a command for Unix which can detach processfromconsole and wait until its finish? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John Mills List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 13:25:09 -0000 Sergey, Freebies - > sergey dyshel wrote: > > 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? Excuse me if I missed the point, but here is the tail end of a typical 'xinitrc' from my Linux box. You can see that it starts a number of clients, then 'exec's the window manager. Is that what you had in mind? =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= if [ -f $HOME/.Xclients ]; then exec $HOME/.Xclients elif [ -f /etc/X11/xinit/Xclients ]; then exec /etc/X11/xinit/Xclients else # failsafe settings. Although we should never get here # (we provide fallbacks in Xclients as well) it can't hurt. xclock -geometry 100x100-5+5 & xterm -geometry 80x50-50+150 & if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then netscape /usr/share/doc/HTML/index.html & fi if [ -x /usr/X11R6/bin/fvwm2 ]; then exec fvwm2 else exec twm fi fi =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= John Mills john.m.mills@alum.mit.edu