From owner-freebsd-questions Mon Mar 17 13: 9:53 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 EA44737B401 for ; Mon, 17 Mar 2003 13:09:51 -0800 (PST) Received: from rod.inty.net (rod.inty.net [195.224.93.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8839943FA3 for ; Mon, 17 Mar 2003 13:09:50 -0800 (PST) (envelope-from Chris@furrie.net) Received: from inty.furrie.net (furrie.net [213.208.115.165]) (authenticated) by rod.inty.net (8.11.6/8.11.6) with ESMTP id h2HL9jC68500 for ; Mon, 17 Mar 2003 21:09:45 GMT Received: from athena ([10.6.8.21]) by inty.furrie.net (8.12.1/8.12.1) with ESMTP id h2HL9iJn015355 for ; Mon, 17 Mar 2003 21:09:44 GMT From: "Chris Phillips" To: Subject: Pushing commands to the background Date: Mon, 17 Mar 2003 21:08:57 -0000 Organization: furrie.net Message-ID: <004001c2ecc9$6cd20500$1508060a@furrie.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Sender-IP: 10.6.8.21 X-INT-DeliveryDone: h2HL9iJn015355 X-suppress-rcpt-virus-notify: yes X-Skip-Virus-Check: yes X-Virus-Checked: 12359 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 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 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 :-( Please can somebody help me? Even if it's just to give me another place to ask my question... Many Thanks Everyone! Chris Phillips PS. I often write emails to FreeBSD-Questions@FreeBSD.Org, but rarely send them, as I read my questions before sending & often find much better results when googling with my questions. intY=20has=20scanned=20this=20email=20for=20all=20known=20viruses=20=28ww= w=2Einty=2Ecom=29 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message