From owner-freebsd-questions Wed Aug 8 18: 6:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sage-american.com (sage-american.com [216.122.141.44]) by hub.freebsd.org (Postfix) with ESMTP id DD64737B403 for ; Wed, 8 Aug 2001 18:06:43 -0700 (PDT) (envelope-from jacks@sage-american.com) Received: from sageone (ppp-208-191-234-101.dialup.crchtx.swbell.net [208.191.234.101]) by sage-american.com (8.9.3/8.9.3) with SMTP id UAA07206; Wed, 8 Aug 2001 20:06:36 -0500 (CDT) Message-Id: <3.0.5.32.20010808200653.010b6460@mail.sage-american.com> X-Sender: jacks@mail.sage-american.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 08 Aug 2001 20:06:53 -0500 To: Brendan McAlpine , freebsd-questions From: jacks@sage-american.com Subject: Re: Scripting question In-Reply-To: References: <1557596443.20010808173718@dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 Here's one way: # mail -s "A subject" you@your.net < yourfile At 09:01 PM 8.8.2001 -0400, Brendan McAlpine wrote: >Hey all > >I am trying to cobble together a script that emails me a file. How would I >write this in a one line shell script command? I am using the mail command. >I can get the shell to open a new mail message, but I can't get it to put >the contents of the file in the email and send it off to me. Any help would >be appreciated. > >TIA > >Brendan > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Best regards, Jack L. Stone, Server Admin Sage-American http://www.sage-american.com jacks@sage-american.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message