From owner-freebsd-questions Tue Mar 18 4: 0:17 2003 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 A283437B404 for ; Tue, 18 Mar 2003 04:00:15 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F36143FCB for ; Tue, 18 Mar 2003 04:00:13 -0800 (PST) (envelope-from nikolay@asu.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id 3A33419E09; Tue, 18 Mar 2003 14:00:09 +0200 (EET) Received: from onyx.asu.ntu-kpi.kiev.ua (eth0.onyx.asu.ntu-kpi.kiev.ua [10.18.16.2]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 9806D19E26 for ; Tue, 18 Mar 2003 14:00:08 +0200 (EET) Received: from drweb by onyx.asu.ntu-kpi.kiev.ua with drweb-scanned (Exim 4.10) id 18vFlI-0009CZ-00 for FreeBSD-Questions@FreeBSD.Org; Tue, 18 Mar 2003 14:00:08 +0200 Received: from nikolay by onyx.asu.ntu-kpi.kiev.ua with local (Exim 4.10) id 18vFlI-0009CT-00 for FreeBSD-Questions@FreeBSD.Org; Tue, 18 Mar 2003 14:00:08 +0200 Date: Tue, 18 Mar 2003 14:00:08 +0200 From: "Nikolay Y. Orlyuk" To: FreeBSD-Questions@FreeBSD.Org Subject: Re: Pushing commands to the background Message-ID: <20030318120008.GE30141@asu.ntu-kpi.kiev.ua> Mail-Followup-To: FreeBSD-Questions@FreeBSD.Org References: <004001c2ecc9$6cd20500$1508060a@furrie.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <004001c2ecc9$6cd20500$1508060a@furrie.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 17, 2003 at 09:08:57PM -0000, Chris Phillips wrote: > > > Stuff like: - > > hostname > uptime > ping -c 100 ftp.furrie.net > traceroute ftp.furrie.net > > I'd like to push all the commands into the background & be able to log > off and let it do its business unattended. Unfortunately, with my > lacking knowledge, so far I have managed this, (sad isn't it)... > > (ping -c 10 ftp.furrie.net > /tmp/results && cat /tmp/results | mail > chris@furrie.net &) > > Even with an & at the end of this command, I do not get my prompt back > :-( You forgot about HUP > `nohup' will vacinate from SIGHUP (#1) > look nohup(1) > bash also have disown -- With best wishes Nikolay mail: nikolay@asu.ntu-kpi.kiev.ua To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message