how to email a file from command line?

Gregg Dinse dinse at niehs.nih.gov
Sat Mar 8 08:52:22 PST 2008


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.

Gregg



More information about the MacOSX-talk mailing list