Re: how to see what LyX is thinking?

2009-08-24 Thread Liviu Andronic
On 8/24/09, G. Jay Kerns gke...@ysu.edu wrote:
  Is there some Linux trick, where I can open LyX, say, from the Desktop
  without a terminal, but on-the-fly open up a terminal (or is there
  even some other mechanism) to see what LyX is thinking?

You could use emelFM2 as the file manager from which you open your LyX
documents. It has an integrated output pane that is, for practical
reasons, a terminal. And you can see all LyX mindwork in it. When not
needed, you could simply hide the output pane. I would believe Ubuntu
has a (somewhat dated) emelFM2 binary.
Liviu


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?


I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
 You could use emelFM2 as the file manager from which you open your LyX
 documents. It has an integrated output pane that is, for practical
 reasons, a terminal. And you can see all LyX mindwork in it. When not
 needed, you could simply hide the output pane. I would believe Ubuntu
 has a (somewhat dated) emelFM2 binary.
 Liviu


Thanks, Liviu.

I installed emelFM2, and it looks pretty cool.  I am going to need to
play around with it more to learn what all it can do.  But I see the
output pane you mentioned, and it seems to be another method to get
what I was looking for.

Thanks again,
Jay



-- 
***
G. Jay Kerns, Ph.D.
Associate Professor
Department of Mathematics  Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
VoIP: gjke...@ekiga.net
E-mail: gke...@ysu.edu
http://www.cc.ysu.edu/~gjkerns/


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns

 I believe you can make a script that opens LyX with a terminal - but
 a minimized terminal. One that disappear as soon as LyX is closed.

 If you need the information, just restore the minimized terminal.

 Helge Hafting



Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).  This is
basically what I was looking for.  There is an extra window, but at
least I don't need to start a whole new LyX process if/when I run into
trouble.

Cheers,
Jay


Re: how to see what LyX is thinking?

2009-08-24 Thread John McCabe-Dansted
On Mon, Aug 24, 2009 at 6:23 PM, Helge Haftinghelge.haft...@hist.no wrote:
 I believe you can make a script that opens LyX with a terminal - but
 a minimized terminal. One that disappear as soon as LyX is closed.

 If you need the information, just restore the minimized terminal.

Another possibility, run lyx as
   lyx 21 | tee -a /tmp/lyx-$USER.log
then if you need to see what lyx is thinking, run
   tail -f  /tmp/lyx-$USER.log
or if you need to know what lyx was thinking you can run something like
   gedit /tmp/lyx-$USER.log

This may be better if you don't want to clutter your panel with
windows you probably won't use (or if you may need to know what LyX
was thinking a while back).

The downside is that the log will grow and grow and won't be
automatically cleared until Ubuntu cleans out /tmp on a restart.
However, even a reconfigure only adds 15k to the log so it is unlikely
to grow very large.

-- 
John C. McCabe-Dansted


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting




Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).


I use the rxvt terminal emulator, which can be started minimized
like this:

rxvt -iconic

I don't have gnome-terminal, but you may try the command
man gnome-terminal
to see if it takes some option for starting minimized. Just put
such options before the -e lyx %F in your launcher command.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread Guenter Milde
On 2009-08-24, G. Jay Kerns wrote:

 Is there some Linux trick, where I can open LyX, say, from the Desktop
 without a terminal, but on-the-fly open up a terminal (or is there
 even some other mechanism) to see what LyX is thinking?

Errors of X programms without attached terminal are written into
'.xsession-errors' in your home directory.

Günter



Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
Thanks for all of the answers; they are all what I was looking for.

Perhaps Günter's solution is the most convenient for my setup... the
errors have been there waiting for me in .xsession-errors all along.

Thanks again.
Jay


Re: how to see what LyX is thinking?

2009-08-24 Thread Liviu Andronic
On 8/24/09, G. Jay Kerns gke...@ysu.edu wrote:
  Is there some Linux trick, where I can open LyX, say, from the Desktop
  without a terminal, but on-the-fly open up a terminal (or is there
  even some other mechanism) to see what LyX is thinking?

You could use emelFM2 as the file manager from which you open your LyX
documents. It has an integrated output pane that is, for practical
reasons, a terminal. And you can see all LyX mindwork in it. When not
needed, you could simply hide the output pane. I would believe Ubuntu
has a (somewhat dated) emelFM2 binary.
Liviu


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?


I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
 You could use emelFM2 as the file manager from which you open your LyX
 documents. It has an integrated output pane that is, for practical
 reasons, a terminal. And you can see all LyX mindwork in it. When not
 needed, you could simply hide the output pane. I would believe Ubuntu
 has a (somewhat dated) emelFM2 binary.
 Liviu


Thanks, Liviu.

I installed emelFM2, and it looks pretty cool.  I am going to need to
play around with it more to learn what all it can do.  But I see the
output pane you mentioned, and it seems to be another method to get
what I was looking for.

Thanks again,
Jay



-- 
***
G. Jay Kerns, Ph.D.
Associate Professor
Department of Mathematics  Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
VoIP: gjke...@ekiga.net
E-mail: gke...@ysu.edu
http://www.cc.ysu.edu/~gjkerns/


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns

 I believe you can make a script that opens LyX with a terminal - but
 a minimized terminal. One that disappear as soon as LyX is closed.

 If you need the information, just restore the minimized terminal.

 Helge Hafting



Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).  This is
basically what I was looking for.  There is an extra window, but at
least I don't need to start a whole new LyX process if/when I run into
trouble.

Cheers,
Jay


Re: how to see what LyX is thinking?

2009-08-24 Thread John McCabe-Dansted
On Mon, Aug 24, 2009 at 6:23 PM, Helge Haftinghelge.haft...@hist.no wrote:
 I believe you can make a script that opens LyX with a terminal - but
 a minimized terminal. One that disappear as soon as LyX is closed.

 If you need the information, just restore the minimized terminal.

Another possibility, run lyx as
   lyx 21 | tee -a /tmp/lyx-$USER.log
then if you need to see what lyx is thinking, run
   tail -f  /tmp/lyx-$USER.log
or if you need to know what lyx was thinking you can run something like
   gedit /tmp/lyx-$USER.log

This may be better if you don't want to clutter your panel with
windows you probably won't use (or if you may need to know what LyX
was thinking a while back).

The downside is that the log will grow and grow and won't be
automatically cleared until Ubuntu cleans out /tmp on a restart.
However, even a reconfigure only adds 15k to the log so it is unlikely
to grow very large.

-- 
John C. McCabe-Dansted


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting




Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).


I use the rxvt terminal emulator, which can be started minimized
like this:

rxvt -iconic

I don't have gnome-terminal, but you may try the command
man gnome-terminal
to see if it takes some option for starting minimized. Just put
such options before the -e lyx %F in your launcher command.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread Guenter Milde
On 2009-08-24, G. Jay Kerns wrote:

 Is there some Linux trick, where I can open LyX, say, from the Desktop
 without a terminal, but on-the-fly open up a terminal (or is there
 even some other mechanism) to see what LyX is thinking?

Errors of X programms without attached terminal are written into
'.xsession-errors' in your home directory.

Günter



Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
Thanks for all of the answers; they are all what I was looking for.

Perhaps Günter's solution is the most convenient for my setup... the
errors have been there waiting for me in .xsession-errors all along.

Thanks again.
Jay


Re: how to see what LyX is thinking?

2009-08-24 Thread Liviu Andronic
On 8/24/09, G. Jay Kerns  wrote:
>  Is there some Linux trick, where I can open LyX, say, from the Desktop
>  without a terminal, but on-the-fly open up a terminal (or is there
>  even some other mechanism) to see what LyX is thinking?
>
You could use emelFM2 as the file manager from which you open your LyX
documents. It has an integrated output pane that is, for practical
reasons, a terminal. And you can see all LyX mindwork in it. When not
needed, you could simply hide the output pane. I would believe Ubuntu
has a (somewhat dated) emelFM2 binary.
Liviu


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?


I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
> You could use emelFM2 as the file manager from which you open your LyX
> documents. It has an integrated output pane that is, for practical
> reasons, a terminal. And you can see all LyX mindwork in it. When not
> needed, you could simply hide the output pane. I would believe Ubuntu
> has a (somewhat dated) emelFM2 binary.
> Liviu
>

Thanks, Liviu.

I installed emelFM2, and it looks pretty cool.  I am going to need to
play around with it more to learn what all it can do.  But I see the
output pane you mentioned, and it seems to be another method to get
what I was looking for.

Thanks again,
Jay



-- 
***
G. Jay Kerns, Ph.D.
Associate Professor
Department of Mathematics & Statistics
Youngstown State University
Youngstown, OH 44555-0002 USA
Office: 1035 Cushwa Hall
Phone: (330) 941-3310 Office (voice mail)
-3302 Department
-3170 FAX
VoIP: gjke...@ekiga.net
E-mail: gke...@ysu.edu
http://www.cc.ysu.edu/~gjkerns/


Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
>
> I believe you can make a script that opens LyX with a terminal - but
> a minimized terminal. One that disappear as soon as LyX is closed.
>
> If you need the information, just restore the minimized terminal.
>
> Helge Hafting
>


Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).  This is
basically what I was looking for.  There is an extra window, but at
least I don't need to start a whole new LyX process if/when I run into
trouble.

Cheers,
Jay


Re: how to see what LyX is thinking?

2009-08-24 Thread John McCabe-Dansted
On Mon, Aug 24, 2009 at 6:23 PM, Helge Hafting wrote:
> I believe you can make a script that opens LyX with a terminal - but
> a minimized terminal. One that disappear as soon as LyX is closed.
>
> If you need the information, just restore the minimized terminal.

Another possibility, run lyx as
   lyx 2>&1 | tee -a /tmp/lyx-$USER.log
then if you need to see what lyx is thinking, run
   tail -f  /tmp/lyx-$USER.log
or if you need to know what lyx was thinking you can run something like
   gedit /tmp/lyx-$USER.log

This may be better if you don't want to clutter your panel with
windows you probably won't use (or if you may need to know what LyX
was thinking a while back).

The downside is that the log will grow and grow and won't be
automatically cleared until Ubuntu cleans out /tmp on a restart.
However, even a reconfigure only adds 15k to the log so it is unlikely
to grow very large.

-- 
John C. McCabe-Dansted


Re: how to see what LyX is thinking?

2009-08-24 Thread Helge Hafting

G. Jay Kerns wrote:

I believe you can make a script that opens LyX with a terminal - but
a minimized terminal. One that disappear as soon as LyX is closed.

If you need the information, just restore the minimized terminal.

Helge Hafting




Thanks, Helge.

I did some searching and it seems like I can replace the command

lyx %F

in the launcher with

gnome-terminal -e lyx %F

and it will open a terminal (not minimized, though).


I use the rxvt terminal emulator, which can be started minimized
like this:

rxvt -iconic

I don't have gnome-terminal, but you may try the command
man gnome-terminal
to see if it takes some option for starting minimized. Just put
such options before the "-e lyx %F" in your launcher command.

Helge Hafting


Re: how to see what LyX is thinking?

2009-08-24 Thread Guenter Milde
On 2009-08-24, G. Jay Kerns wrote:

> Is there some Linux trick, where I can open LyX, say, from the Desktop
> without a terminal, but on-the-fly open up a terminal (or is there
> even some other mechanism) to see what LyX is thinking?

Errors of X programms without attached terminal are written into
'.xsession-errors' in your home directory.

Günter



Re: how to see what LyX is thinking?

2009-08-24 Thread G. Jay Kerns
Thanks for all of the answers; they are all what I was looking for.

Perhaps Günter's solution is the most convenient for my setup... the
errors have been there waiting for me in .xsession-errors all along.

Thanks again.
Jay


Re: how to see what LyX is thinking?

2009-08-23 Thread rgheck

On 08/23/2009 08:48 PM, G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?

   
Someone else might have a better answer, but the only thing I know to do 
here is to attach a debugger, such as gdb, to the running process, and 
then you can see the output there. This seems overkill, however, and it 
will slow LyX down.


Another option would be to run LyX from a script that redirected stderr 
to a file, and then you could always look at that file if you needed to 
do so. E.g.:


#!/bin/bash
/usr/bin/lyx $@ 21 /tmp/lyx-output

Put that into /usr/local/bin/lyx, say, and it will get run instead of 
/usr/bin/lyx (assuming your PATH says so). Then if you want to see the 
terminal output, you can do:


u...@host tail -f /tmp/lyx-output

And you can of course look back at anything that went by before this 
way, too.


rh


Thanks for any help you may have,
Jay



   




Re: how to see what LyX is thinking?

2009-08-23 Thread rgheck

On 08/23/2009 08:48 PM, G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?

   
Someone else might have a better answer, but the only thing I know to do 
here is to attach a debugger, such as gdb, to the running process, and 
then you can see the output there. This seems overkill, however, and it 
will slow LyX down.


Another option would be to run LyX from a script that redirected stderr 
to a file, and then you could always look at that file if you needed to 
do so. E.g.:


#!/bin/bash
/usr/bin/lyx $@ 21 /tmp/lyx-output

Put that into /usr/local/bin/lyx, say, and it will get run instead of 
/usr/bin/lyx (assuming your PATH says so). Then if you want to see the 
terminal output, you can do:


u...@host tail -f /tmp/lyx-output

And you can of course look back at anything that went by before this 
way, too.


rh


Thanks for any help you may have,
Jay



   




Re: how to see what LyX is thinking?

2009-08-23 Thread rgheck

On 08/23/2009 08:48 PM, G. Jay Kerns wrote:

Dear LyX-Users,

I am on Ubuntu Linux.  If I run lyx from a terminal, then along with
the LyX window I get a terminal where I can see what LyX is thinking
when it generates PDFs, etc.  This is a very useful debugging tool,
but I only need it a relatively small fraction of the time I am using
LyX.

On the other hand, I can never predict when I am going to need it.
And if I run LyX from the Desktop icon, say, then I don't get the
terminal showing LyX's thought processes.  If I get to someplace where
I need the terminal (especially when I am doing something with
Sweave), the only solution I have found is to close LyX and open it up
again with a terminal.

Is there some Linux trick, where I can open LyX, say, from the Desktop
without a terminal, but on-the-fly open up a terminal (or is there
even some other mechanism) to see what LyX is thinking?

   
Someone else might have a better answer, but the only thing I know to do 
here is to attach a debugger, such as gdb, to the running process, and 
then you can see the output there. This seems overkill, however, and it 
will slow LyX down.


Another option would be to run LyX from a script that redirected stderr 
to a file, and then you could always look at that file if you needed to 
do so. E.g.:


#!/bin/bash
/usr/bin/lyx $@ 2>&1 >/tmp/lyx-output

Put that into /usr/local/bin/lyx, say, and it will get run instead of 
/usr/bin/lyx (assuming your PATH says so). Then if you want to see the 
terminal output, you can do:


u...@host> tail -f /tmp/lyx-output

And you can of course look back at anything that went by before this 
way, too.


rh


Thanks for any help you may have,
Jay