commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
if "mail -a" fail, try "mutt -a" or "nail -a"
There is 1 alternative - vote for the best!
Send it the easy way, with MIME and everything handled for you by an app that knows best.
Another way of sending an attachment.
-s : subject
file : file to be sent
This just reads in a local file and sends it via email. Works with text or binary. *Requires* local mail server.
uuencode the file to appear as an attachment
on this way we can define the body too
If you can do better, submit your command here.
You must be signed in to comment.