Thanks for that pointer Hendrik ... it sounds very appealing on a Friday to dabble in magic!
Scott Rohling On Fri, May 20, 2016 at 8:03 AM, Hendrik Brueckner < brueck...@linux.vnet.ibm.com> wrote: > On Fri, May 20, 2016 at 07:53:22AM -0700, Scott Rohling wrote: > > My point was that what you see in Linux and CMS are not two different > > things.. a Linux 'cat' and CMS 'TYPE' are pretty equivalent -- and a > > packed file looks garbled using either one. > > > > I think Neale had a good idea in making the Linux 'file' command > recognize > > this particular signature so at least Linux knows it is packed and not > text > > format - just as it knows about tar, gzip, etc even without a particular > > filetype in the name. > > To recognize the file format the "magic" patterns are used. See also the > definitions in /usr/share/misc/magic and magic(5) man page. If you know > how to detect packed CMS files, you can add the signature there (or for > testing locally) and check if file is then able to recognize it. > > Kind regards, > Hendrik > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/