From owner-freebsd-questions Mon Mar 17 13:17: 0 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 BDCD337B401 for ; Mon, 17 Mar 2003 13:16:58 -0800 (PST) Received: from thor.65535.net (thor.65535.net [65.214.160.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2A7C43FA3 for ; Mon, 17 Mar 2003 13:16:57 -0800 (PST) (envelope-from rghf@fsck.me.uk) Received: from localhost (thor [65.214.160.96]) by thor.65535.net (8.12.6/8.12.6) with ESMTP id h2HLH2Ra089264; Mon, 17 Mar 2003 21:17:02 GMT (envelope-from rghf@fsck.me.uk) Date: Mon, 17 Mar 2003 21:17:02 +0000 (GMT) From: Rus Foster To: Chris Phillips Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: Pushing commands to the background In-Reply-To: <004001c2ecc9$6cd20500$1508060a@furrie.net> Message-ID: <20030317211356.C38163@thor.65535.net> References: <004001c2ecc9$6cd20500$1508060a@furrie.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 17 Mar 2003, Chris Phillips wrote: > Hello all, > > I'm not sure if it's exactly "On Topic" (I bet you'll let me know!), but > here goes... > > I work in technical support, for a FreeBSD based, Internet Appliance & > am after a way to gather some network quality information. > > I'd like to run some commands, one after another, have the output(s) > added (appended) to a file, then, when all is complete, have that file > sent to my email address. I can then compile the data & make some sense > of it, maybe... > > Stuff like: - > > hostname > uptime > ping -c 100 ftp.furrie.net > traceroute ftp.furrie.net > Well you can do something like (hostname ; uptime ; ping ; traceroute ) > file You might also find the tee command useful Rgds Rus -- http://www.65535.net | MSN: support@65535.net | e: rghf@65535.net "More bits for your bite" Lifetime FreeBSD + Linux Hosting and Shell Accounts Please respect RFC1855 and don't top post To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message