From owner-freebsd-questions Wed Sep 16 12:55:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22344 for freebsd-questions-outgoing; Wed, 16 Sep 1998 12:55:08 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22337 for ; Wed, 16 Sep 1998 12:55:05 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id MAA11943; Wed, 16 Sep 1998 12:54:35 -0700 (PDT) (envelope-from dhw) Date: Wed, 16 Sep 1998 12:54:35 -0700 (PDT) From: David Wolfskill Message-Id: <199809161954.MAA11943@pau-amma.whistle.com> To: frankg@idfw.com, freebsd-questions@FreeBSD.ORG Subject: Re: Mail ifconfig -a output to myself In-Reply-To: <000e01bde199$aa691060$0200a8c0@fast1.dfw.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >From: "Frank Griffith" >Date: Wed, 16 Sep 1998 12:44:31 -0500 >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? Replace the ">" by "|". To get a little fancier, try something on the order of: ifconfig -a | mail -s "Home net config" my_emailaddress@my_domain.com david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message