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:
Send it the easy way, with MIME and everything handled for you by an app that knows best.
There are 9 alternatives - vote for the 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.
if "mail -a" fail, try "mutt -a" or "nail -a"
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.