Comprehensive TeX Archive Network

CTAN Up­date: tex­os­query

Date: July 15, 2016 5:33:45 PM CEST
Ni­cola Tal­bot sub­mit­ted an up­date to the tex­os­query pack­age. Ver­sion: 1.1 2016-07-14 Li­cense: lp­pl1.3 Sum­mary de­scrip­tion: Cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion An­nounce­ment text:
* tex­os­query.jar: - Added --dirname (-e) - Mul­ti­line re­sults add braces to each line (to make it eas­ier to parse the re­sults in TeX). - Code now com­piled for Java 5 to sup­port users with old ver­sions of the JRE. * tex­os­query.tex: - \TeXOSQueryNow and \TeXOSQueryFileDate set the cat­e­gory code of D to 12 (to match \pdfcre­ation­date). - new com­mand \TeXOSQueryDirName - dry run mode is now by de­fault on un­less shell es­cape=1 (un­re­stricted mode)
The pack­age's Cat­a­logue en­try can be viewed at http://www.ctan.org/pkg/tex­os­query The pack­age's files them­selves can be in­spected at http://mir­ror.ctan.org/sup­port/tex­os­query/
Thanks for the up­load. For the CTAN Team Pe­tra Rübe-Pugliese
We are sup­ported by the TeX users groups. Please join a users group; see http://www.tug.org/user­groups.html .

tex­os­query – Cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion

This pack­age pro­vides a cross-plat­form Java ap­pli­ca­tion to query OS in­for­ma­tion de­signed for use in ’s shell es­cape mech­a­nism.

The ap­pli­ca­tion can query the fol­low­ing:

  • lo­cale and code­set
  • cur­rent work­ing di­rec­tory
  • user home di­rec­tory
  • tem­po­rary di­rec­tory
  • OS name, arch and ver­sion
  • Cur­rent date and time in PDF for­mat (for for­mats that don’t pro­vide \pdfcre­ation­date)
  • Date-time stamp of a file in PDF for­mat (for for­mats that don't pro­vide \pdf­file­mod­date)
  • Size of a file in bytes (for for­mats that don’t pro­vide \pdf­file­size)
  • Con­tents of a di­rec­tory (cap­tured as a list)
  • Direc­tory con­tents fil­tered by reg­u­lar ex­pres­sion (cap­tured as a list)
  • URI of a file
  • Canon­i­cal path of a file

All paths use a for­ward slash as di­rec­tory di­vider so re­sults can be used, for ex­am­ple, in com­mands like \in­clude­graph­ics.

There are files pro­vided for easy ac­cess in doc­u­ments:

  • tex­os­query.tex: generic code
  • tex­os­query.sty: pack­age

This pro­vides com­mands to run tex­os­query us­ing ’s shell es­cape mech­a­nism and cap­ture the re­sult in a con­trol se­quence. The cat­e­gory code of most of ’s de­fault spe­cial char­ac­ters (and some other po­ten­tially prob­lem­atic char­ac­ters) is tem­porar­ily changed to 12 while read­ing the re­sult.

Ver­sion1.5 2017-05-23
Copy­right2016–2017 Ni­cola Tal­bot
Main­tainerNi­cola Tal­bot



Guest Book Sitemap Contact Contact Author