From owner-freebsd-questions Thu Aug 9 8: 0: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 73A4F37B405 for ; Thu, 9 Aug 2001 08:00:05 -0700 (PDT) (envelope-from dfrazier@magpage.com) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.3/8.11.3) with ESMTP id f79F01079594; Thu, 9 Aug 2001 11:00:01 -0400 (EDT) Message-ID: <3B72A56A.50401@magpage.com> Date: Thu, 09 Aug 2001 10:59:54 -0400 From: Daniel Frazier User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.3) Gecko/20010807 X-Accept-Language: en-us MIME-Version: 1.0 To: Brendan McAlpine Cc: freebsd-questions Subject: Re: Scripting question References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN 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 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. > mail -s "subject" recipient@somedomain.com < filename -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message