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

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]

Re: Perl on Cygwin

2004-12-10 Thread Matthias Kraatz
On my home computer I only run perl through cygwin. That way I can readily export scripts to Unix, without changing paths. Works great. Have fun, -Matthias Mandar Rahurkar wrote: Hello, Has anyone used perl on windows machine through cygwin ? Is the usability same as that on linux box ? M

Re: CGI

2004-12-06 Thread Matthias Kraatz
Hi Brent, there are a few reasons that come to my mind why the code stopped working after transferring from another machine: 1) The shellbang line (e.g. "#!/usr/bin/perl") does not point to the actual perl binary on the local machine. 2) A newline problem, i.e. you binary copied from a unix to d

Problems installing CPAN perl modules

2004-11-27 Thread Matthias Kraatz
Hi, first, on my home computer under cygwin installing the modules works just fine. In contrast, the same task on a Sun (SunOS 5.9/sparc) gives me a headache. I don't have root access, so I define all the paths manually. In detail, I do perl Makefile.PL `cat ~/.perl_dirs` in the modules direc

Re: 're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Matthias Kraatz
Octavian Rasnita wrote: Use select() function. Read perldoc -f select Teddy - Original Message - From: "Matthias Kraatz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 27, 2004 12:20 AM Subject: 're'-redirecting STDOUT back to ST

're'-redirecting STDOUT back to STDOUT after writing to a file

2004-11-26 Thread Matthias Kraatz
Hi, this might be a really stupid question. But, in a cgi-script I wanted to prevent an executable that I call from within the script from dumping output directly to the webpage. This worked fine with 'open(STDOUT,">something-log.txt")'. But now I want to write to the webpage again. 'open(STD