Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Milos Komarcevic
At 15:15 18/02/2003 -0800, you wrote:

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

   1) Running all startup scripts, i.e. the system wide /etc/profile
  all script in /etc/profile.d as well as your personal
  $HOME/.profile and your $HOME/.bashrc.
   2) Executes the file /etc/lyxprofile
   3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling
lyx. lyxwin32 does not call tr a standard unix command (translate). It
seems that that tr command does not terminate and therefore lyxwin32
can't proceed to start lyx.exe at the end. So who does call that? SO
why does it not exit?

 The only one I could find is the line

 export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

 in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).


Do you have  base-files-1.1-1 installed?
That comes with /etc/profile.default that has that line in it,
and hence my /etc/profile too


 But that doesn't seem to cause problems and hang when I open a
 bash window, start XFree86 and xterm or anything else,
 just with lyxwin32.exe
 The only change I did to /etc/lyxprofile is comment out the 'export
 HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if
the problem disappears.


That did solve the problem and LyX started successfully.
So now we know which 'tr' is hanging, can we find out why is it so?
It does not hang when I open just a bash window, and the HOSTNAME var
is set correctly.


FWIW, I've bumped into situations where something worked ok in DOS but
not Cygwin, or vice versa.  It turns out that permissions for the same
file may be different (or at least appear different) between DOS/Windoze
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries
to invoke some other program for which it lacks, or appears to lack,
permission.


I've tried this with or without CYGWIN=ntsec, no difference.

I'm cc'ing this to the cygwin list also, maybe somebody can shed
some new light on this. 



Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Paul A. Rubin
[posted and mailed]

Turns out tr is not the culprit.  See comments interspersed below.

Milos Komarcevic [EMAIL PROTECTED] wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

 At 15:15 18/02/2003 -0800, you wrote:
 So any command in any of those files will be executed before
 calling lyx. lyxwin32 does not call tr a standard unix command
 (translate). It seems that that tr command does not terminate and
 therefore lyxwin32 can't proceed to start lyx.exe at the end. So
 who does call that? SO why does it not exit?
 
  The only one I could find is the line
 
  export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
 
  in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).
 
 Do you have  base-files-1.1-1 installed?

Yes.

 That comes with /etc/profile.default that has that line in it,

Same here.

 and hence my /etc/profile too

It's in my profile.default, but not in profile itself.  Don't know why; I 
never edited /etc/profile that I can recall, and I'm positive I never 
played with that line.  Something else is exporting the HOSTNAME 
variable, because it's in my environment when I open a bash shell.

  But that doesn't seem to cause problems and hang when I open a
  bash window, start XFree86 and xterm or anything else,
  just with lyxwin32.exe
  The only change I did to /etc/lyxprofile is comment out the 'export
  HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if
the problem disappears.
 
 That did solve the problem and LyX started successfully.
 So now we know which 'tr' is hanging, can we find out why is it so?

By editing my /etc/profile, I reproduced your problem.  It turns out that 
tr is not hanging; hostname is.  To verify this, I changed the line in 
/etc/profile to

HN=`tr BOZO '[A-Z]' '[a-z]'`
export MYHOSTNAME=$HN

and LyX started fine.  Then I replaced that with

HN=`hostname`

(not even bothering to do anything with the resulting variable HN) and 
the startup process hung (XFree86 running but the LyX window not yet 
opened).  When I killed the hostname process, LyX finished loading.

I have no idea why hostname is hanging in this context, when it runs fine 
in a bash shell.

 It does not hang when I open just a bash window, and the HOSTNAME var
 is set correctly.

Same here.
 
FWIW, I've bumped into situations where something worked ok in DOS but
not Cygwin, or vice versa.  It turns out that permissions for the same
file may be different (or at least appear different) between
DOS/Windoze and Cygwin.  (This only applies to Win 2K and XP, and
maybe NT.)  I'm wondering if maybe lyxwin32, running under DOS rather
than Cygwin, tries to invoke some other program for which it lacks, or
appears to lack, permission.
 
 I've tried this with or without CYGWIN=ntsec, no difference.
 
 I'm cc'ing this to the cygwin list also, maybe somebody can shed
 some new light on this. 

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE




Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Milos Komarcevic
At 15:15 18/02/2003 -0800, you wrote:

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

   1) Running all startup scripts, i.e. the system wide /etc/profile
  all script in /etc/profile.d as well as your personal
  $HOME/.profile and your $HOME/.bashrc.
   2) Executes the file /etc/lyxprofile
   3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling
lyx. lyxwin32 does not call tr a standard unix command (translate). It
seems that that tr command does not terminate and therefore lyxwin32
can't proceed to start lyx.exe at the end. So who does call that? SO
why does it not exit?

 The only one I could find is the line

 export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

 in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).


Do you have  base-files-1.1-1 installed?
That comes with /etc/profile.default that has that line in it,
and hence my /etc/profile too


 But that doesn't seem to cause problems and hang when I open a
 bash window, start XFree86 and xterm or anything else,
 just with lyxwin32.exe
 The only change I did to /etc/lyxprofile is comment out the 'export
 HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if
the problem disappears.


That did solve the problem and LyX started successfully.
So now we know which 'tr' is hanging, can we find out why is it so?
It does not hang when I open just a bash window, and the HOSTNAME var
is set correctly.


FWIW, I've bumped into situations where something worked ok in DOS but
not Cygwin, or vice versa.  It turns out that permissions for the same
file may be different (or at least appear different) between DOS/Windoze
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries
to invoke some other program for which it lacks, or appears to lack,
permission.


I've tried this with or without CYGWIN=ntsec, no difference.

I'm cc'ing this to the cygwin list also, maybe somebody can shed
some new light on this. 



Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Paul A. Rubin
[posted and mailed]

Turns out tr is not the culprit.  See comments interspersed below.

Milos Komarcevic [EMAIL PROTECTED] wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

 At 15:15 18/02/2003 -0800, you wrote:
 So any command in any of those files will be executed before
 calling lyx. lyxwin32 does not call tr a standard unix command
 (translate). It seems that that tr command does not terminate and
 therefore lyxwin32 can't proceed to start lyx.exe at the end. So
 who does call that? SO why does it not exit?
 
  The only one I could find is the line
 
  export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
 
  in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).
 
 Do you have  base-files-1.1-1 installed?

Yes.

 That comes with /etc/profile.default that has that line in it,

Same here.

 and hence my /etc/profile too

It's in my profile.default, but not in profile itself.  Don't know why; I 
never edited /etc/profile that I can recall, and I'm positive I never 
played with that line.  Something else is exporting the HOSTNAME 
variable, because it's in my environment when I open a bash shell.

  But that doesn't seem to cause problems and hang when I open a
  bash window, start XFree86 and xterm or anything else,
  just with lyxwin32.exe
  The only change I did to /etc/lyxprofile is comment out the 'export
  HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if
the problem disappears.
 
 That did solve the problem and LyX started successfully.
 So now we know which 'tr' is hanging, can we find out why is it so?

By editing my /etc/profile, I reproduced your problem.  It turns out that 
tr is not hanging; hostname is.  To verify this, I changed the line in 
/etc/profile to

HN=`tr BOZO '[A-Z]' '[a-z]'`
export MYHOSTNAME=$HN

and LyX started fine.  Then I replaced that with

HN=`hostname`

(not even bothering to do anything with the resulting variable HN) and 
the startup process hung (XFree86 running but the LyX window not yet 
opened).  When I killed the hostname process, LyX finished loading.

I have no idea why hostname is hanging in this context, when it runs fine 
in a bash shell.

 It does not hang when I open just a bash window, and the HOSTNAME var
 is set correctly.

Same here.
 
FWIW, I've bumped into situations where something worked ok in DOS but
not Cygwin, or vice versa.  It turns out that permissions for the same
file may be different (or at least appear different) between
DOS/Windoze and Cygwin.  (This only applies to Win 2K and XP, and
maybe NT.)  I'm wondering if maybe lyxwin32, running under DOS rather
than Cygwin, tries to invoke some other program for which it lacks, or
appears to lack, permission.
 
 I've tried this with or without CYGWIN=ntsec, no difference.
 
 I'm cc'ing this to the cygwin list also, maybe somebody can shed
 some new light on this. 

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE




Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Milos Komarcevic
At 15:15 18/02/2003 -0800, you wrote:

>>So what's the difference between lyx.exe and lyxwin32.exe?
>>lyxwin32.exe will do the following to ensure a proper environment:
>>
>>   1) Running all startup scripts, i.e. the system wide /etc/profile
>>  all script in /etc/profile.d as well as your personal
>>  $HOME/.profile and your $HOME/.bashrc.
>>   2) Executes the file /etc/lyxprofile
>>   3) It starts lyx.exe sending error output into the file /tmp/lyx.out
>>
>>So any command in any of those files will be executed before calling
>>lyx. lyxwin32 does not call tr a standard unix command (translate). It
>>seems that that tr command does not terminate and therefore lyxwin32
>>can't proceed to start lyx.exe at the end. So who does call that? SO
>>why does it not exit?
>
> The only one I could find is the line
>
> export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
>
> in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).


Do you have  base-files-1.1-1 installed?
That comes with /etc/profile.default that has that line in it,
and hence my /etc/profile too


> But that doesn't seem to cause problems and hang when I open a
> bash window, start XFree86 and xterm or anything else,
> just with lyxwin32.exe
> The only change I did to /etc/lyxprofile is comment out the 'export
> HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if
the problem disappears.


That did solve the problem and LyX started successfully.
So now we know which 'tr' is hanging, can we find out why is it so?
It does not hang when I open just a bash window, and the HOSTNAME var
is set correctly.


FWIW, I've bumped into situations where something worked ok in DOS but
not Cygwin, or vice versa.  It turns out that permissions for the same
file may be different (or at least appear different) between DOS/Windoze
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries
to invoke some other program for which it lacks, or appears to lack,
permission.


I've tried this with or without CYGWIN=ntsec, no difference.

I'm cc'ing this to the cygwin list also, maybe somebody can shed
some new light on this. 



Re: runlyx.bat does not start Cygwin LyX

2003-02-20 Thread Paul A. Rubin
[posted and mailed]

Turns out tr is not the culprit.  See comments interspersed below.

Milos Komarcevic <[EMAIL PROTECTED]> wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

> At 15:15 18/02/2003 -0800, you wrote:
>> >>So any command in any of those files will be executed before
>> >>calling lyx. lyxwin32 does not call tr a standard unix command
>> >>(translate). It seems that that tr command does not terminate and
>> >>therefore lyxwin32 can't proceed to start lyx.exe at the end. So
>> >>who does call that? SO why does it not exit?
>> >
>> > The only one I could find is the line
>> >
>> > export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
>> >
>> > in /etc/profile (that is the default one, hasn't been changed).
>>
>>Curious, there's no such line in my profile (also default).
> 
> Do you have  base-files-1.1-1 installed?

Yes.

> That comes with /etc/profile.default that has that line in it,

Same here.

> and hence my /etc/profile too

It's in my profile.default, but not in profile itself.  Don't know why; I 
never edited /etc/profile that I can recall, and I'm positive I never 
played with that line.  Something else is exporting the HOSTNAME 
variable, because it's in my environment when I open a bash shell.

>> > But that doesn't seem to cause problems and hang when I open a
>> > bash window, start XFree86 and xterm or anything else,
>> > just with lyxwin32.exe
>> > The only change I did to /etc/lyxprofile is comment out the 'export
>> > HOME=...' as I've already set it as my Windows env. variable.
>>
>>Try commenting out the export HOSTNAME line in /etc/profile and see if
>>the problem disappears.
> 
> That did solve the problem and LyX started successfully.
> So now we know which 'tr' is hanging, can we find out why is it so?

By editing my /etc/profile, I reproduced your problem.  It turns out that 
tr is not hanging; hostname is.  To verify this, I changed the line in 
/etc/profile to

HN="`tr BOZO '[A-Z]' '[a-z]'`"
export MYHOSTNAME=$HN

and LyX started fine.  Then I replaced that with

HN="`hostname`"

(not even bothering to do anything with the resulting variable HN) and 
the startup process hung (XFree86 running but the LyX window not yet 
opened).  When I killed the hostname process, LyX finished loading.

I have no idea why hostname is hanging in this context, when it runs fine 
in a bash shell.

> It does not hang when I open just a bash window, and the HOSTNAME var
> is set correctly.

Same here.
 
>>FWIW, I've bumped into situations where something worked ok in DOS but
>>not Cygwin, or vice versa.  It turns out that permissions for the same
>>file may be different (or at least appear different) between
>>DOS/Windoze and Cygwin.  (This only applies to Win 2K and XP, and
>>maybe NT.)  I'm wondering if maybe lyxwin32, running under DOS rather
>>than Cygwin, tries to invoke some other program for which it lacks, or
>>appears to lack, permission.
> 
> I've tried this with or without CYGWIN=ntsec, no difference.
> 
> I'm cc'ing this to the cygwin list also, maybe somebody can shed
> some new light on this. 

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE




Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Milos Komarcevic
Claus,

At 11:41 18/02/2003 +0100, you wrote:

 I have tried launching with wrapper lyxwin32.exe using Cygwin/XFree86,
 and still I have the same problem: nothing happens, but if I start with
 'lyx' from an xterm window everything is fine.

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

1) Running all startup scripts, i.e. the system wide /etc/profile
   all script in /etc/profile.d as well as your personal
   $HOME/.profile and your $HOME/.bashrc.
2) Executes the file /etc/lyxprofile
3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling lyx.
lyxwin32 does not call tr a standard unix command (translate). It seems that
that tr command does not terminate and therefore lyxwin32 can't proceed to
start lyx.exe at the end. So who does call that? SO why does it not exit?


The only one I could find is the line

export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

in /etc/profile (that is the default one, hasn't been changed).
But that doesn't seem to cause problems and hang when I open a
bash window, start XFree86 and xterm or anything else,
just with lyxwin32.exe
The only change I did to /etc/lyxprofile is comment out the 'export HOME=...'
as I've already set it as my Windows env. variable.



 There seem to be two processes started when I type 'start .\lyxwin32.exe'
 from the DOS command window: tr.exe and lyxwin32.exe (both in
d:\cygwin\bin)

So why do you use a DOS window? Try my startlyx.bat file to start Lyx using
lyxwin32.exe! There will be used the run command!


Because 'start .\lyxwin32.exe' is in rynlyx.bat and that batch file is
run from the DOS/Windows environment, no? I am just trying to do whatever
runlyx.bat is doing step-by-step.

startlyx.bat fails in exactly the same way (tr.exe + lyxwin32.exe hang)

In both of these cases, no /tmp/lyx.out is being created at all.


You can start the X server first. Then open a bash window and in that window
enter
lyxwin32
Watch the screen for output. After that look do
cat /tmp/lyx.out
to have a look into the error output written by Lyx itself.


This works and starts LyX ok! ??? The output is:

'Command is: |lyx /dev/null 2/tmp/lyx.out|'

and /tmp/lyx.out is created and empty.

So I don't really understand what is going on??? For what it's worth,
I'm running Win2k+SP3 and have CYGWIN env. set to
'binmode ntsec tty nosmbntsec'
Is there more switches on lyxwin32.exe to get more debugging info?

Regards,
Milos 



Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Paul A. Rubin
Milos Komarcevic [EMAIL PROTECTED] wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

So any command in any of those files will be executed before calling
lyx. lyxwin32 does not call tr a standard unix command (translate). It
seems that that tr command does not terminate and therefore lyxwin32
can't proceed to start lyx.exe at the end. So who does call that? SO
why does it not exit? 
 
 The only one I could find is the line
 
 export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
 
 in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).

 But that doesn't seem to cause problems and hang when I open a
 bash window, start XFree86 and xterm or anything else,
 just with lyxwin32.exe
 The only change I did to /etc/lyxprofile is comment out the 'export
 HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if 
the problem disappears.

FWIW, I've bumped into situations where something worked ok in DOS but 
not Cygwin, or vice versa.  It turns out that permissions for the same 
file may be different (or at least appear different) between DOS/Windoze 
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm 
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries 
to invoke some other program for which it lacks, or appears to lack, 
permission.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE




Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Milos Komarcevic
Claus,

At 11:41 18/02/2003 +0100, you wrote:

 I have tried launching with wrapper lyxwin32.exe using Cygwin/XFree86,
 and still I have the same problem: nothing happens, but if I start with
 'lyx' from an xterm window everything is fine.

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

1) Running all startup scripts, i.e. the system wide /etc/profile
   all script in /etc/profile.d as well as your personal
   $HOME/.profile and your $HOME/.bashrc.
2) Executes the file /etc/lyxprofile
3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling lyx.
lyxwin32 does not call tr a standard unix command (translate). It seems that
that tr command does not terminate and therefore lyxwin32 can't proceed to
start lyx.exe at the end. So who does call that? SO why does it not exit?


The only one I could find is the line

export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

in /etc/profile (that is the default one, hasn't been changed).
But that doesn't seem to cause problems and hang when I open a
bash window, start XFree86 and xterm or anything else,
just with lyxwin32.exe
The only change I did to /etc/lyxprofile is comment out the 'export HOME=...'
as I've already set it as my Windows env. variable.



 There seem to be two processes started when I type 'start .\lyxwin32.exe'
 from the DOS command window: tr.exe and lyxwin32.exe (both in
d:\cygwin\bin)

So why do you use a DOS window? Try my startlyx.bat file to start Lyx using
lyxwin32.exe! There will be used the run command!


Because 'start .\lyxwin32.exe' is in rynlyx.bat and that batch file is
run from the DOS/Windows environment, no? I am just trying to do whatever
runlyx.bat is doing step-by-step.

startlyx.bat fails in exactly the same way (tr.exe + lyxwin32.exe hang)

In both of these cases, no /tmp/lyx.out is being created at all.


You can start the X server first. Then open a bash window and in that window
enter
lyxwin32
Watch the screen for output. After that look do
cat /tmp/lyx.out
to have a look into the error output written by Lyx itself.


This works and starts LyX ok! ??? The output is:

'Command is: |lyx /dev/null 2/tmp/lyx.out|'

and /tmp/lyx.out is created and empty.

So I don't really understand what is going on??? For what it's worth,
I'm running Win2k+SP3 and have CYGWIN env. set to
'binmode ntsec tty nosmbntsec'
Is there more switches on lyxwin32.exe to get more debugging info?

Regards,
Milos 



Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Paul A. Rubin
Milos Komarcevic [EMAIL PROTECTED] wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

So any command in any of those files will be executed before calling
lyx. lyxwin32 does not call tr a standard unix command (translate). It
seems that that tr command does not terminate and therefore lyxwin32
can't proceed to start lyx.exe at the end. So who does call that? SO
why does it not exit? 
 
 The only one I could find is the line
 
 export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
 
 in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).

 But that doesn't seem to cause problems and hang when I open a
 bash window, start XFree86 and xterm or anything else,
 just with lyxwin32.exe
 The only change I did to /etc/lyxprofile is comment out the 'export
 HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if 
the problem disappears.

FWIW, I've bumped into situations where something worked ok in DOS but 
not Cygwin, or vice versa.  It turns out that permissions for the same 
file may be different (or at least appear different) between DOS/Windoze 
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm 
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries 
to invoke some other program for which it lacks, or appears to lack, 
permission.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE




Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Milos Komarcevic
Claus,

At 11:41 18/02/2003 +0100, you wrote:

> I have tried launching with wrapper lyxwin32.exe using Cygwin/XFree86,
> and still I have the same problem: nothing happens, but if I start with
> 'lyx' from an xterm window everything is fine.

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

1) Running all startup scripts, i.e. the system wide /etc/profile
   all script in /etc/profile.d as well as your personal
   $HOME/.profile and your $HOME/.bashrc.
2) Executes the file /etc/lyxprofile
3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling lyx.
lyxwin32 does not call tr a standard unix command (translate). It seems that
that tr command does not terminate and therefore lyxwin32 can't proceed to
start lyx.exe at the end. So who does call that? SO why does it not exit?


The only one I could find is the line

export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

in /etc/profile (that is the default one, hasn't been changed).
But that doesn't seem to cause problems and hang when I open a
bash window, start XFree86 and xterm or anything else,
just with lyxwin32.exe
The only change I did to /etc/lyxprofile is comment out the 'export HOME=...'
as I've already set it as my Windows env. variable.



> There seem to be two processes started when I type 'start .\lyxwin32.exe'
> from the DOS command window: tr.exe and lyxwin32.exe (both in
d:\cygwin\bin)

So why do you use a DOS window? Try my startlyx.bat file to start Lyx using
lyxwin32.exe! There will be used the run command!


Because 'start .\lyxwin32.exe' is in rynlyx.bat and that batch file is
run from the DOS/Windows environment, no? I am just trying to do whatever
runlyx.bat is doing step-by-step.

startlyx.bat fails in exactly the same way (tr.exe + lyxwin32.exe hang)

In both of these cases, no /tmp/lyx.out is being created at all.


You can start the X server first. Then open a bash window and in that window
enter
lyxwin32
Watch the screen for output. After that look do
cat /tmp/lyx.out
to have a look into the error output written by Lyx itself.


This works and starts LyX ok! ??? The output is:

'Command is: |lyx /tmp/lyx.out|'

and /tmp/lyx.out is created and empty.

So I don't really understand what is going on??? For what it's worth,
I'm running Win2k+SP3 and have CYGWIN env. set to
'binmode ntsec tty nosmbntsec'
Is there more switches on lyxwin32.exe to get more debugging info?

Regards,
Milos 



Re: runlyx.bat does not start Cygwin LyX

2003-02-18 Thread Paul A. Rubin
Milos Komarcevic <[EMAIL PROTECTED]> wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

>>So any command in any of those files will be executed before calling
>>lyx. lyxwin32 does not call tr a standard unix command (translate). It
>>seems that that tr command does not terminate and therefore lyxwin32
>>can't proceed to start lyx.exe at the end. So who does call that? SO
>>why does it not exit? 
> 
> The only one I could find is the line
> 
> export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`
> 
> in /etc/profile (that is the default one, hasn't been changed).

Curious, there's no such line in my profile (also default).

> But that doesn't seem to cause problems and hang when I open a
> bash window, start XFree86 and xterm or anything else,
> just with lyxwin32.exe
> The only change I did to /etc/lyxprofile is comment out the 'export
> HOME=...' as I've already set it as my Windows env. variable.

Try commenting out the export HOSTNAME line in /etc/profile and see if 
the problem disappears.

FWIW, I've bumped into situations where something worked ok in DOS but 
not Cygwin, or vice versa.  It turns out that permissions for the same 
file may be different (or at least appear different) between DOS/Windoze 
and Cygwin.  (This only applies to Win 2K and XP, and maybe NT.)  I'm 
wondering if maybe lyxwin32, running under DOS rather than Cygwin, tries 
to invoke some other program for which it lacks, or appears to lack, 
permission.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE