From owner-freebsd-questions Wed Sep 16 13:49:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA03237 for freebsd-questions-outgoing; Wed, 16 Sep 1998 13:49:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lix.intercom.es (lix.intercom.es [194.179.21.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA03100 for ; Wed, 16 Sep 1998 13:48:40 -0700 (PDT) (envelope-from megarcia@lix.intercom.es) Received: from orchis.intercom.es (iv2-106.intercom.es [195.76.206.106]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id WAA15564; Wed, 16 Sep 1998 22:50:16 +0100 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <000e01bde199$aa691060$0200a8c0@fast1.dfw.com> Date: Wed, 16 Sep 1998 22:46:46 +0200 (CEST) Organization: Puxa Asturies ! From: Manuel Enrique Garcia Cuesta To: Frank Griffith Subject: RE: Mail ifconfig -a output to myself Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 16-Sep-98 Frank Griffith wrote: > I want to run the command ifconfig -a and have the output > of this command be mailed to myself via the Internet. So, > I typed this command line: > > ifconfig -a > mail my_emailaddress@my_domain.com > > Of course this did not work. Can someone tell me the > proper syntax for this? Try: ifconfig -a | mail my_emailaddress@my_domain.com The trick here is to use the pipe operator | instead of the redirection one > Hope this helps. Manuel Garcia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message