Hello:
I've made a program in Perl with the output in latex. Now i want to generate the pdf file with pdflatex. I'm using windows, so i've installed miktex in the folder of my project.
When i call system with

system ("./lib/texmf/miktex/bin/pdflatex $outputfile.tex")

all is ok, and i obtain my file $outputfile.pdf, but i think that itsn't elegant to show in the standard output, so i change the call, changing the standard output (or the standard error), to

system ("./lib/texmf/miktex/bin/pdflatex $outputfile.tex > $outputfile +.2.log")

or

system ("./lib/texmf/miktex/bin/pdflatex $outputfile.tex >? $outputfil +e.2.log")

but then my program says:

"'.' is not recognized as an internal or external command, operable program or batch file."

What's the problem? Why doesn't it work?
I've got a paar question more about system, when the program invoked finish, my program takes the control again. Doesn't it? Can the program invoked not to finish good and be a "zombi" in the system and not finish?
Can someone help me? Thank you.
Yours, sincerely
José Ramón Martínez

Edit g0n - added code tags


In reply to pdflatex and system by josera

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.