>
> 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
> > 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
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
> 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