Forrest logo
back to the run-mailcap tool

print:tldr:a608c

print: With `run-mailcap`.
$ run-mailcap --action=print ${filename}
try on your machine

The command "run-mailcap" is used to execute the mailcap files in Unix-like systems. Mailcap (short for mail capability) files specify the actions to be taken for different types of files or data.

In this specific command, "run-mailcap --action=print" is used to invoke the printing action specified in the mailcap file for the given file. The "${filename}" is a placeholder that should be replaced with the actual name of the file you want to print.

When you run this command, it will search for the appropriate entry in the mailcap file associated with the file's MIME type. If a suitable action is found, it will be executed, and the file will be sent to a printer for printing. The exact steps and results depend on the configurations and available programs specified in the mailcap file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the run-mailcap tool