Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 1998 22:46:46 +0200 (CEST)
From:      Manuel Enrique Garcia Cuesta <megarcia@lix.intercom.es>
To:        Frank Griffith <frankg@idfw.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: Mail ifconfig -a output to myself
Message-ID:  <XFMail.980916224646.megarcia@lix.intercom.es>
In-Reply-To: <000e01bde199$aa691060$0200a8c0@fast1.dfw.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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