CTAN Comprehensive TeX Archive Network

texosquery – Cross-platform Java application to query OS information

This package provides a cross-platform Java application to query OS information designed for use in ’s shell escape mechanism.

The application can query the following:

  • locale and codeset
  • current working directory
  • user home directory
  • temporary directory
  • OS name, arch and version
  • Current date and time in PDF format (for formats that don’t provide \pdfcreationdate)
  • Date-time stamp of a file in PDF format (for formats that don't provide \pdffilemoddate)
  • Size of a file in bytes (for formats that don’t provide \pdffilesize)
  • Contents of a directory (captured as a list)
  • Directory contents filtered by regular expression (captured as a list)
  • URI of a file
  • Canonical path of a file

All paths use a forward slash as directory divider so results can be used, for example, in commands like \includegraphics.

There are files provided for easy access in documents:

  • texosquery.tex: generic code
  • texosquery.sty: package

This provides commands to run texosquery using ’s shell escape mechanism and capture the result in a control sequence. The category code of most of ’s default special characters (and some other potentially problematic characters) is temporarily changed to 12 while reading the result.

Sources/support/texosquery
Documentation
Repositoryhttps://github.com/nlct/texosquery
Version1.6 2017-06-20
LicensesThe Project Public License 1.3
MaintainerNicola Talbot
Contained inTeX Live as texosquery
MiKTeX as texosquery
TopicsSys supp

Download the contents of this package in one zip archive (763.0k).

Export the package reference as file

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author