Send file via command line

So you are working on Linux and would like to send yourself a file….You could use ftp or scp but say you have shell access from a windows box and you want it there, a quick way to mail a file is by using the mail command. E.G.

cat filename | mail e-mail-address -s “Subject”

This will send a file to you with a subject line with what ever you place between the quotes.

 

 

 

Be the first to comment

Leave a Reply