[OS X TeX] Re: Save date-time, not Print date

Victor Ivrii vivrii at gmail.com
Sun Jan 7 15:52:38 CET 2007


On 1/7/07, Alain Schremmer <Schremmer.Alain at gmail.com> wrote:
> Victor Ivrii wrote:
>
> > \documentclass[12pt]{article}
> >
> > \newcommand\file{foo}
> >
> > \begin{document}
> >
> > Test
> >
> > \immediate\write18{ls -l \file.tex | cut -b33-45 > \file.date}
> > \input\file.date
> >
> > \end{document}
>
> I copy pasted this on a new file and typeset it. I got an output with
> the word "Test" but nothing else.
>

\write18 works only if --shell-escape is enabled. What is your latex
engine. Also you need to replace foo by the actual name (without .tex)
of your file.

-- 
========================
Victor Ivrii, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list