When finished, use Ctrl+D to send the message out for delivery. You can add additional recipients or just press Enter to skip. To send a basic email, you can use the following: $ mail -s "Subject Line" you press Enter, you'll be prompted with the Cc field. Install the package: $ apt-get install mailutils You'll need to have an SMTP server running locally on your machine, so that is something to be aware of. Mail-The mail command is a super neat tool that allows a user to send emails directly from the command line, without having to open a browser or dedicated client. In the above example, I'm doing a POST and passing the header and the body. Invoke awk by running the command providing an action between '' \ Sysadmins commonly use awk to extract data from files or piped from the output of other commands in the command line or Shell scripts. This command is available in most if not all Linux distributions as well as any other UNIX operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |