Sometimes its useful to send a small reminder, note or even a whole file from the commandline in linux. This is how it goes.

<p>Sometimes its useful to send a small reminder, note or even a whole file from the commandline in linux. This is how it goes.</p>
 
<p>To send just a simple message type:</p>
 
<code class="prettyprint">
echo "e-mail body" | mail -s "e-mail subject" mail@example.com
</code>
 
<p>If you want to send a file type:</p>
 
<code class="prettyprint">
echo "e-mail body" | mail -a /full/path/to/file -s "e-mail subject" mail@example.com
</code>

Bookmark this!

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • del.icio.us
  • Digg
  • Fark
  • Furl
  • MisterWong
  • NewsVine
  • Reddit
  • Spurl
  • StumbleUpon
  • TailRank
  • Technorati

Submit your comment

vision22.net

Copyright © 2007