Re: How to detect present X-Server

2004-12-16 Thread Lawrence Statton
> > I'm certain that a tiny 'attempt to connect to the server on $ENV{DISPLAY} and do nothing' program can be written. > File this under "ugly but works" .. BEGIN PERL PROGRAM .. #!/usr/bin/perl use strict; use warnings; my $message = `xlsfonts -f

Re: How to detect present X-Server

2004-12-16 Thread Lawrence Statton
> > is there a way to make a perl program find out whether a > > valid X-Server is running? > > I.e. $ENV{DISPLAY} is not a dummy address, if set. > > In the situation you want to use X if available, terminal > otherwise, wouldn't it be better just to use an option? > Well -- from a human-issues

Re: How to detect present X-Server

2004-12-16 Thread Matthias Kraatz
Jonathan - thanks for the input. Actually I wanted to provide more details but I thought there would be a simple and standard solution for it (that I hadn't found.) Anyway, I am working on a project for interfacing a simulation software, creating input files, processing output, scripting varia

Re: How to detect present X-Server

2004-12-16 Thread Jonathan Paton
> is there a way to make a perl program find out whether a > valid X-Server is running? > I.e. $ENV{DISPLAY} is not a dummy address, if set. Not in a useful way. I have a headless (no monitor) Linux server, and a Windows desktop with a X win server. If I forget to run the X server it doesn't mea

How to detect present X-Server

2004-12-15 Thread Matthias Kraatz
Hi everybody - is there a way to make a perl program find out whether a valid X-Server is running? I.e. $ENV{DISPLAY} is not a dummy address, if set. Thanks, Matthias -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]