Am Freitag, 25. Mai 2018 16:26:01 CEST schrieb Richard Kimberly Heck 
<rikih...@lyx.org>:
> On 05/25/2018 02:51 PM, Kornel Benko wrote:
> >
> > Am Freitag, 25. Mai 2018 13:17:44 CEST schrieb Richard Kimberly Heck
> > <rikih...@lyx.org>:
> >
> > > On 05/25/2018 03:29 AM, Kornel Benko wrote:
> >
> > > >
> >
> > > > Testing batch executes
> >
> > > >
> >
> > > > lyx -x ...
> >
> > > >
> >
> > > > creates a GUI, which is not always desired. This is disturbing in
> > tests.
> >
> > > >
> >
> > > > Since the export command
> >
> > > >
> >
> > > > lyx -e ...
> >
> > > >
> >
> > > > works, it should be doable.
> >
> > > >
> >
> > > >  
> >
> > > >
> >
> > > > BTW, I was unable to use '--batch' command. What is the exact syntax?
> >
> > > >
> >
> > >
> >
> > > It's meant just to be an option, with no argument. It's only effect it
> >
> > > to turn off the gui. See parse_batch in LyX.cpp.
> >
> > >
> >
> > > Riki
> >
> >  
> >
> > Would be nice if that were so. But I constantly get the message:
> >
> > Missing filename for this operation.
> >
> >  
> >
> > And using for instance
> >
> > lyx -batch -x "something"
> >
> > there is no change in behaviour.
> >
> 
> So I just did:
>     lyx -batch -x "buffer-export pdf2" Test.lyx
> and that worked quietly. Without -batch, it gives me the GUI.
> 
> > Trying
> >
> > lyx -batch Test.lyx
> >
> > ==>
> >
> > /home/kornel/Test.lyx is not a readable LyX document.
> >
> > LyX failed to load the following file: /home/kornel/Test.lyx
> >
> > Exit 1
> >
> 
> I'm not sure why you get that, but you haven't given any command.
> 
> Riki

I only tried use it.

While testing, we do not need always a start-test-file.
Like the following:
        lyx -batch -x 'command-sequence buffer-new; buffer-import latex 
ams-import.tex; buffer-write; buffer-export pdf2; lyx-quit'

        Kornel


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to