Hi Sisyphus.  

I agree, the gnuplot processes become zombies in some cases. Even persisting 
past quiting pdl. I too use pskill to get rid of them. 

Thanks for the codepage reference. I am looking into whether IPC::Run might be 
a better choice than IPC::OpenX as indicated by several threads in perldoc.org 
and stackoverflow. Also looking into Programming Perl - there is a section on 
interprocess communications with Win32.

CLIFF SOBCHUK
Core RF Engineering
Phone 613-667-1974   ecn: 8109-71974
mobile 403-819-9233
yahoo: sobchuk
www.ericsson.com 

"The author works for Telefonaktiebolaget L M Ericsson ("Ericsson"), who is 
solely responsible for this email and its contents. All inquiries regarding 
this email should be addressed to Ericsson. The web site for Ericsson is 
www.ericsson.com."

This Communication is Confidential. We only send and receive email on the basis 
of the terms set out at www.ericsson.com/email_disclaimer


-----Original Message-----
From: Sisyphus [mailto:[email protected]] 
Sent: Friday, January 27, 2012 12:48 AM
To: Chris Marshall; Craig DeForest
Cc: [email protected]
Subject: Re: [Perldl] PDL::Graphics::Gnuplot on Win32 Vista.


----- Original Message -----
From: "Chris Marshall" <[email protected]>
To: "Craig DeForest" <[email protected]>
Cc: <[email protected]>
Sent: Friday, January 27, 2012 5:49 AM
Subject: Re: [Perldl] PDL::Graphics::Gnuplot on Win32 Vista.


> The basic command works on cygwin (which is what I
> would expect since it acts like unix).  However, the
> same command fails on win32 with a message about
> not talking to the gnuplot for 5sec so that is where the
> IPC::Run (or is it open3) is a problem.

This is just IO::Select's can_read() method not working on windows. It 
returns immediately, no matter what the timeout. (In a nutshell, we can't 
make use of this method on Windows.)
You'll find that message occurs about half a second after the script starts 
to execute. (Essentially, I've just been ignoring this message.)

Other things to watch for on Windows:

1) Each time you close the gnuplot.exe, it remains as a zombie. Every now 
and then you'll want to kill off these zombies - which I've been doing with:
taskkill /F /IM gnuplot.exe

2) The following warning message was interfering with the way things ran:

Warning: The codepage of the graph window (1252) and that of the console 
(850) differ. Use `set encoding` or `!chcp` if extended characters don't 
display correctly.

If you get that warning message, you probably want to get rid of it (for the 
time being, at least) - which I've been doing with:
mode CON codepage select=1252

I'm able to get gnuplots on Windows, though there's still a bit to be done.
I haven't tried zowie's latest yet - but I'd like to get back to it when I 
get a chance.

Cheers,
Rob



_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to