"Text-like" files (such as C source and shell scripts) may not print to a text-only printer in RHEL

Solution Verified - Updated -

Issue

  • CUPS may not print files with .p extension.  These files are progress 4gl files. The error msg is lp: unsupported format application /x- c source.
  • You may not be able to print C-language source files to a text-only printer.
  • I tried to print using lp and it gives me an error "lp: Unsupported format 'application/x-shell'!".

Environment

  • Red Hat Enterprise Linux (RHEL) 5, 6, and 7
  • "Textonly" printer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content