Re: lyx-remote script?

2004-07-02 Thread G. Milde
On 1.07.04, G. Milde wrote: I wrote a simple shell script that seems to do the trick. There is an error when the filename is relative and pwd != LyX's working dir. The attached python version solves this. Günter -- G.Milde at web.de #!/usr/bin/env python # -*- coding: iso-8859-1 -*-

Re: lyx-remote script?

2004-07-02 Thread Angus Leeming
G. Milde wrote: I wrote a simple shell script that seems to do the trick. Thanks to Kornel Benko and Jean-Pierre Chretien for their tips. A python version proved more complicated because of the possible blocking of writes/reads to/from named pipes. More on this later. (Are there people

Re: lyx-remote script?

2004-07-02 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: * Customization.lyx gives a wrong debug number for the server: ... starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx -dbg 4096 Angus Got that. Fixed in cvs. Please... Use -dbg lyxserver instead, it is a bit less cryptic.

Re: lyx-remote script?

2004-07-02 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: * Customization.lyx gives a wrong debug number for the server: ... starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx -dbg 4096 Angus Got that. Fixed in cvs. Please... Use -dbg lyxserver

Re: lyx-remote script?

2004-07-02 Thread G. Milde
On 1.07.04, G. Milde wrote: I wrote a simple shell script that seems to do the trick. There is an error when the filename is relative and pwd != LyX's working dir. The attached python version solves this. Günter -- G.Milde at web.de #!/usr/bin/env python # -*- coding: iso-8859-1 -*-

Re: lyx-remote script?

2004-07-02 Thread Angus Leeming
G. Milde wrote: I wrote a simple shell script that seems to do the trick. Thanks to Kornel Benko and Jean-Pierre Chretien for their tips. A python version proved more complicated because of the possible blocking of writes/reads to/from named pipes. More on this later. (Are there people

Re: lyx-remote script?

2004-07-02 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: * Customization.lyx gives a wrong debug number for the server: ... starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx -dbg 4096 Angus Got that. Fixed in cvs. Please... Use -dbg lyxserver instead, it is a bit less cryptic.

Re: lyx-remote script?

2004-07-02 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: * Customization.lyx gives a wrong debug number for the server: ... starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx -dbg 4096 Angus Got that. Fixed in cvs. Please... Use -dbg lyxserver

Re: "lyx-remote" script?

2004-07-02 Thread G. Milde
On 1.07.04, G. Milde wrote: > > I wrote a simple shell script that seems to do the trick. There is an error when the filename is relative and pwd != LyX's working dir. The attached python version solves this. Günter -- G.Milde at web.de #!/usr/bin/env python # -*- coding: iso-8859-1

Re: "lyx-remote" script?

2004-07-02 Thread Angus Leeming
G. Milde wrote: > I wrote a simple shell script that seems to do the trick. Thanks to > Kornel Benko and Jean-Pierre Chretien for their tips. > > A python version proved more complicated because of the possible blocking > of writes/reads to/from named pipes. More on this later. (Are there >

Re: "lyx-remote" script?

2004-07-02 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> * Customization.lyx gives a wrong debug number for the server: ... >> starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx >> -dbg 4096 Angus> Got that. Fixed in cvs. Please... Use "-dbg lyxserver" instead, it is a

Re: "lyx-remote" script?

2004-07-02 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >> writes: > > >>> * Customization.lyx gives a wrong debug number for the server: ... >>> starting LyX as lyx -dbg 8192 should become ... starting LyX as lyx >>> -dbg 4096 > > Angus> Got that. Fixed in cvs. >

Re: lyx-remote script?

2004-07-01 Thread G. Milde
I wrote a simple shell script that seems to do the trick. Thanks to Kornel Benko and Jean-Pierre Chretien for their tips. A python version proved more complicated because of the possible blocking of writes/reads to/from named pipes. More on this later. (Are there people interested in a Python

Re: lyx-remote script?

2004-07-01 Thread G. Milde
I wrote a simple shell script that seems to do the trick. Thanks to Kornel Benko and Jean-Pierre Chretien for their tips. A python version proved more complicated because of the possible blocking of writes/reads to/from named pipes. More on this later. (Are there people interested in a Python

Re: "lyx-remote" script?

2004-07-01 Thread G. Milde
I wrote a simple shell script that seems to do the trick. Thanks to Kornel Benko and Jean-Pierre Chretien for their tips. A python version proved more complicated because of the possible blocking of writes/reads to/from named pipes. More on this later. (Are there people interested in a Python

Re: lyx-remote script?

2004-06-17 Thread Jean-Pierre.Chretien
Date: Tue, 15 Jun 2004 08:14:16 +0200 From: G. Milde [EMAIL PROTECTED] To: LyX Users List [EMAIL PROTECTED] Subject: lyx-remote script? Dear Lyxers, I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file

Re: lyx-remote script?

2004-06-17 Thread Ronald Florence
G. Milde [EMAIL PROTECTED] writes: I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file, if there is no LyX running. Years ago, when I first ported LyX-1.3.x to X11 on the Mac, I wrote a script that does this. The

Re: lyx-remote script?

2004-06-17 Thread Jean-Pierre.Chretien
Date: Tue, 15 Jun 2004 08:14:16 +0200 From: G. Milde [EMAIL PROTECTED] To: LyX Users List [EMAIL PROTECTED] Subject: lyx-remote script? Dear Lyxers, I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file

Re: lyx-remote script?

2004-06-17 Thread Ronald Florence
G. Milde [EMAIL PROTECTED] writes: I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file, if there is no LyX running. Years ago, when I first ported LyX-1.3.x to X11 on the Mac, I wrote a script that does this. The

Re: "lyx-remote" script?

2004-06-17 Thread Jean-Pierre.Chretien
>>Date: Tue, 15 Jun 2004 08:14:16 +0200 >>From: "G. Milde" <[EMAIL PROTECTED]> >>To: LyX Users List <[EMAIL PROTECTED]> >>Subject: "lyx-remote" script? >> >>Dear Lyxers, >> >>I would like to see a script, that >

Re: "lyx-remote" script?

2004-06-17 Thread Ronald Florence
"G. Milde" <[EMAIL PROTECTED]> writes: > I would like to see a script, that >* opens a file in a LyX session, if there is an open one, or >* starts LyX with the file, if there is no LyX running. Years ago, when I first ported LyX-1.3.x to X11 on the Mac, I wrote a script that does this.

lyx-remote script?

2004-06-16 Thread G. Milde
Dear Lyxers, I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file, if there is no LyX running. I thought about checking for ~.lyxpipe, if it exists send an open file command there, if not start LyX with file. Is

lyx-remote script?

2004-06-16 Thread G. Milde
Dear Lyxers, I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file, if there is no LyX running. I thought about checking for ~.lyxpipe, if it exists send an open file command there, if not start LyX with file. Is

"lyx-remote" script?

2004-06-16 Thread G. Milde
Dear Lyxers, I would like to see a script, that * opens a file in a LyX session, if there is an open one, or * starts LyX with the file, if there is no LyX running. I thought about checking for ~.lyxpipe, if it exists send an open file command there, if not start LyX with file. Is