how to email a file from command line?

John Musbach johnmusbach1 at gmail.com
Sat Mar 8 12:31:41 PST 2008


On Sat, Mar 8, 2008 at 8:52 AM, Gregg Dinse <dinse at niehs.nih.gov> wrote:
> Hi,
>
>  I know this is a dumb question, and I tried to figure it out from the
>  man pages, but I had no luck.  I am at home and I need to retrieve a
>  Word document from my MacOSX machine at work.  Suppose the file is
>  called junk.doc and that dummy at company.com is my email address.  I can
>  ssh to my mac at work.  Once I get there and cd to the correct
>  directory, what command line instruction can I give to email junk.doc
>  to myself as an attachment?
>
>  I tried sending a test message by typing:  mail dummy at company.com
>
>  but I could not even figure out how to gracefully end the process.
>  When I typed ^Z, it stopped, but nothing was mailed.  Thanks in
>  advance for any answers to this dumb question.

Hello, I think you'll find this document very helpful:
http://www.shelldorado.com/articles/mailattachments.html



-- 
Best Regards,

John Musbach


More information about the MacOSX-talk mailing list