Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Aug 2001 10:59:54 -0400
From:      Daniel Frazier <dfrazier@magpage.com>
To:        Brendan McAlpine <bmcalpine@macconnect.com>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Scripting question
Message-ID:  <3B72A56A.50401@magpage.com>
References:  <B797592E.2BDEE%bmcalpine@macconnect.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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  <dfrazier@magpage.com>   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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B72A56A.50401>