<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Le 23/01/2011 15:41, Vafa Khalighi a écrit :
    <blockquote
      cite="mid:AANLkTinaCfUzG67pYoKEgkXs4sRe4hJ2eW4no+oTrG4H@mail.gmail.com"
      type="cite">
      <div dir="ltr">Can you please tel me why this does not work with
        pdflatex --shell-escape test<br>
        <br>
        <style type="text/css">p, li { white-space: pre-wrap; }</style>
        <p style="margin: 0px; text-indent: 0px;">\documentclass{minimal}</p>
        <p style="margin: 0px; text-indent: 0px;">\usepackage{makeidx}</p>
        <p style="margin: 0px; text-indent: 0px;">\makeindex</p>
        <p style="margin: 0px; text-indent: 0px;">\makeatletter</p>
        <p style="margin: 0px; text-indent: 0px;">\renewcommand\printindex{%</p>
        <p style="margin: 0px; text-indent: 0px;">\immediate\closeout\@indexfile</p>
        <p style="margin: 0px; text-indent: 0px;">\immediate\write18{makeindex
          \jobname.idx}</p>
        <p style="margin: 0px; text-indent: 0px;">\input{\jobname.ind}}</p>
        <p style="margin: 0px; text-indent: 0px;">\makeatother</p>
        <p style="margin: 0px; text-indent: 0px;">\begin{document}</p>
        <p style="margin: 0px; text-indent: 0px;">This is a test.</p>
        <p style="margin: 0px; text-indent: 0px;">\index{Test}\index{Exam}</p>
        <p style="margin: 0px; text-indent: 0px;">\printindex</p>
        <p style="margin: 0px; text-indent: 0px;">\end{document}</p>
      </div>
    </blockquote>
    <br>
    What happens if you add \pdfshellescape=1 at the top of the file?<br>
    <br>
    Paul<br>
  </body>
</html>