The command is like this: cat log.txt mail -s Updated log file -r fromexample.com toexample.com.How can I force the content to be inlined in the mail as Content-Type: textplain From the MIME types of the man page of mailx: If there is a match with the extension of the file to attach, the given typesubtype pair is used.Otherwise, or if the filename has no extension, the content types textplain or applicationoctet-stream are used, the first for text or international text files, the second for any file that contains formatting characters other than newlines and horizontal tabulators.
If the log.txt file contains formatting characters other than newlines and horizontal tabulators, its type will be recognized by mailx as applicationoctet-stream. Again, from the man page of cat: -v, show-nonprinting use and M- notation, except for LFD and TAB The trick is to add -v as cat s option to show the nonprinting characters as this: cat -v log.txt mail -s Updated log file -r fromexample.com toexample.com. ![]() Required fields are marked Comment Notify me of followup comments via e-mail. File Extension Application Octet Stream How To Install RName Email Categories Insights (9) Linux (243) Linux Kernel (7) News (12) Project (4) Systems (28) Blockchain (3) Computing systems (11) Resource management (2) Storage systems (12) Tutorial (1,183) Hardware (9) Mobile (8) Network (24) Programming (86) QA (869) Software (82) Virtualization (32) Web (48) Recent posts How to Convert Int to String in C How to Migrate RSS Feed Readling List from Feedly to Follow.it How To Install R and RStudio Desktop in Ubuntu Linux 20.04 How To Install R and RStudio Server in Ubuntu Linux 20.04 Linux Kernel: drmi915guc: Dont enable GuCHuC in auto mode on pre-Gen11 Linux Kernel: PM clk: Fix clock error check in pmclkadd() Linux Kernel: netpoll: fix netconsole IPv6 setup Linux Kernel: cifs: release authkey.response for reconnect. FPN format description not yet available Category: Data files Application: Francophonem Mime-type: applicationoctet-stream Magic number: - Magic string: - Sample: - FPN aliases: - FPN related links: - FPN related extensions: - GeoXD Neutral Data.fpn Description: FPN file is a GeoXD Neutral Data. Midas GeoXD is a geotechnical CAD toolset for Microsoft Windows. If Windows recognizes the filename extension, it opens the file in the program that is associated with that filename extension. When Windows does not recognize a filename extension, you receive the following message: Windows cannot open this file: example.fpn To open this file, Windows needs to know what program you want to use to open it. File Extension Application Octet Stream How To Set TheIf you dont know how to set the.fpn file association, check the FAQ. Can I change the extension of files Changing the filename extension of a file is not a good idea. When you change a files extension, you change the way programs on your computer read the file. The problem is, changing the file extension does not change the file format. By continuing to use this website, you consent to our use of these cookies. Accept Read more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |