Date: Tue, 18 Mar 2003 14:00:08 +0200 From: "Nikolay Y. Orlyuk" <nikolay@asu.ntu-kpi.kiev.ua> To: FreeBSD-Questions@FreeBSD.Org Subject: Re: Pushing commands to the background Message-ID: <20030318120008.GE30141@asu.ntu-kpi.kiev.ua> In-Reply-To: <004001c2ecc9$6cd20500$1508060a@furrie.net> References: <004001c2ecc9$6cd20500$1508060a@furrie.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030318120008.GE30141>