Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 21:17:02 +0000 (GMT)
From:      Rus Foster <rghf@fsck.me.uk>
To:        Chris Phillips <Chris@furrie.net>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: Pushing commands to the background
Message-ID:  <20030317211356.C38163@thor.65535.net>
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, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030317211356.C38163>