Re: -jobname broken?

Jason Gross <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CAKObCaquaM-bKngmP+3GqR6DK57_yA+rbyh0i+-CvoXmDCBeRw@mail.gmail.com>
Do you have an example of -jobname working?  Even if I put
\message{\jobname} later, or remove it alltogether, latex doesn't seem to
respect -jobname:

$ (echo '\relax'; echo
'\documentclass{article}\begin{document}.\message{^^J^^J\jobname^^J^^J}\end{document}')
| latex -jobname=foo
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit)
**entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.

*("D:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("D:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
(D:\cygwin\tmp\texput.aux)

texput

[1] (D:\cygwin\tmp\texput.aux)
Output written on texput.dvi (1 page, 216 bytes).
Transcript written on texput.log.

$ (echo '\relax'; echo
'\documentclass{article}\begin{document}.\end{document}') | latex
-jobname=foo
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit)
**entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.

*("D:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("D:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
(D:\cygwin\tmp\texput.aux) [1] (D:\cygwin\tmp\texput.aux)
Output written on texput.dvi (1 page, 216 bytes).
Transcript written on texput.log.


On Wed, Sep 2, 2015 at 4:36 PM, Ulrike Fischer <[email protected]> wrote:

> Am Wed, 2 Sep 2015 14:33:21 -0400 schrieb Jason Gross:
>
> > Hi,
> > Is there a way to set \jobname from the command-line?  latex --help
> claims
> > I should use -job-name=, but this doesn't work (and neither does
> -jobname):
>
> --jobname=foo, -jobname=foo, -job-name=foo, --jobname=foo all works
> for me with a normal latex call. But with your early \message
> command you are forcing \jobname to texput.
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See http://docs.miktex.org/faq/support.html#leavingml
>
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.