How to run doors -batch on unix/linux without DISPLAY environment variable

Hi all,

I want run a DXL script by batch mode so run doors -batch
As I run it by crontab their is no DISPLAY set and when doors.exe launch it failed and report it cannot connect to unknown DISPLAY:
 

Cannot open X display "(not specified)".


or

 

Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified
Cannot open X display "localhost:0".



Does any one know a solution ?

Thanks a lot for you help
kind regards
Vincent



 


vimo - Tue Nov 03 09:18:27 EST 2009

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
llandale - Tue Nov 03 12:50:28 EST 2009

Don't know about 'Connections' and 'Protocols', but I do know that Batch mode has no display interface so you cannot do anything in Batch mode that relies on a display. For example, while of course this function won't execute in batch, it likewise will not interpret:
string Number()
{return number(obj)
}
Because it uses the pre-defined 'obj' variable which is not defined in Batch mode.

Anyway, you are doing something that requires a display set, and either should not do that or you need to patch it up. For example, if you add 'Object obj' above that function above, then it will indeed interpret.

  • Louie

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
vimo - Thu Nov 05 07:27:03 EST 2009

llandale - Tue Nov 03 12:50:28 EST 2009
Don't know about 'Connections' and 'Protocols', but I do know that Batch mode has no display interface so you cannot do anything in Batch mode that relies on a display. For example, while of course this function won't execute in batch, it likewise will not interpret:
string Number()
{return number(obj)
}
Because it uses the pre-defined 'obj' variable which is not defined in Batch mode.

Anyway, you are doing something that requires a display set, and either should not do that or you need to patch it up. For example, if you add 'Object obj' above that function above, then it will indeed interpret.

  • Louie

Louie,

Thanks a lot for your advice. Indeed my script do not use display interface and do not use such pre-defined variable, it only change some rigths on folders and modules.

I think it is only a matter of DISPLAY on Linux. Unix-like clients use MainWin interface to execute on X11 graphical environement. This is an experience for old Unix-like users because it is no more supported as far as I know.
Does anybody have such experience?

regards, Vincent

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
Reik_Schroeder - Mon Nov 09 01:17:04 EST 2009

Hi Vincent,

I remember this problem from a few years ago.
It depends on the using of Mainwin framework as you have written already.

My workaround to run the batch scripts on Solaris was to temporarly start a VNC X-server.
The advantage of using VNC was, that it runs in user mode and also generates no output ;-))
http://www.realvnc.com/products/free/4.1/man/Xvnc.html

I hope that helps you to getting on ;-)

Greetings
Reik

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
SystemAdmin - Tue Nov 10 15:19:46 EST 2009

We've used something called Wine to run a DOORS batch job in Linux. I don't know much else about it except it took a bit of finagling to get it running.

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
SystemAdmin - Thu Nov 12 03:25:34 EST 2009

SystemAdmin - Tue Nov 10 15:19:46 EST 2009
We've used something called Wine to run a DOORS batch job in Linux. I don't know much else about it except it took a bit of finagling to get it running.

Just out of curiosity. What version of DOORS are you using, and what OS for the server and clients?

/Kristian

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
SystemAdmin - Thu Nov 12 12:43:07 EST 2009

SystemAdmin - Thu Nov 12 03:25:34 EST 2009
Just out of curiosity. What version of DOORS are you using, and what OS for the server and clients?

/Kristian

I should stress that I used "we", and by "we" I meant I directed one of my team members to do it (I did write the DXL). I go to a website to see the data, and that's really it. So here's the information from my guy ("I"), but I know very little about how it all works together. :)

WINE 1.1.19
DOORS 8.0
OS: I've had it working on any Ubuntu dist since 8.10, should work in any Linux platform I would think.
It requires some sort of x windows to work correctly but you can just use Xvfb a if you just want to run it in batch mode like we are doing.

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
vimo - Mon Nov 16 11:26:35 EST 2009

Thank you all for your attention and advices.

I search help with my Linux admin guys for use your vnc or wine suggestions.

As you asked, we use Doors 8.0 on Linux RedHat 5 server both server and client.

Thanks for your help
Vincent

Re: How to run doors -batch on unix/linux without DISPLAY environment variable
vimo - Tue Nov 17 06:50:26 EST 2009

vimo - Mon Nov 16 11:26:35 EST 2009
Thank you all for your attention and advices.

I search help with my Linux admin guys for use your vnc or wine suggestions.

As you asked, we use Doors 8.0 on Linux RedHat 5 server both server and client.

Thanks for your help
Vincent

We have done it using vnc

Great thanks

Vincent