RE: Win32-API and ghostscript API

2005-04-25 Thread Rogers, John
Title: RE: Win32-API and ghostscript API Current state of play, can start instance and delete it.   But  cant exit or use it ! ## use warnings; use strict; use Win32::API; #GS cmdline arguments Win32::API::Struct->typedef( 'GSARGS' ,    'LPSTR' , 'ps2pdf',    'LPSTR' ,

is AddConnection thread safe?

2005-04-25 Thread Phil Sweeney
I'm writing a perl script that has many threads doing this: my %NetResource = ( 'Scope' => RESOURCE_CONNECTED, 'Type' => RESOURCETYPE_ANY, 'DisplayType' => RESOURCEDISPLAYTYPE_GENERIC, 'Usage' => RESOURCEUSAGE_CONNECTABLE, 'RemoteName' => "$hostname" ); if (!Win32::NetResource::AddC

RE: Win32-API and ghostscript API

2005-04-25 Thread Rogers, John
Title: RE: Win32-API and ghostscript API Rob, You sir are a legend! Thankyou for your help with this. my next step is to attempt the ps2pdf as per the example code, I will let you know how it goes. John Rogers pseudo code from c example### check if version 8.15 error if not ---done define

Re: Can't read from registry

2005-04-25 Thread $Bill Luebkert
Lyle Kopnicky wrote: > Hi folks, > > I'm trying to use Win32::TieRegistry to read and set values in the > registry. It's not working. I made this short example program which > demonstrates the problem. When I run it, I get "value =" (no value). I > have checked that the corresponding regis

Can't read from registry

2005-04-25 Thread Lyle Kopnicky
Hi folks, I'm trying to use Win32::TieRegistry to read and set values in the registry. It's not working. I made this short example program which demonstrates the problem. When I run it, I get "value =" (no value). I have checked that the corresponding registry key/value exists using RegEdit

Re: .htpasswd for win32 apache

2005-04-25 Thread $Bill Luebkert
Chris wrote: > Gurus, > > I'm trying to write .htpasswd files but having no luck. The code below > executes with no errors, but apache does not seem to recognize the passwords > it generates on win32. It works fine on Linux. Any Ideas? use strict; use Digest::MD5; my $the_user = 'test'; my $tem

Re: How to share a hash?

2005-04-25 Thread Chris Wagner
At 01:53 AM 4/26/05 +0400, =?koi8-r?B?/qPSztnKfPPQydPPyw==?= wrote: >result is: >HASH(0x16e4ee8) HASH(0x1d34380) HASH(0x1d343c8) >my @params = >( >{id => '1', up => 8, to => 0.5, char => 'a'}, >{id => '2', up => 5, to => 0.2, char => 'b'}, >{id => '3', up => 11, to => 0.3, char => 'c'} >); >prin

RE: How to share a hash?

2005-04-25 Thread Paul Sobey
You can't share references - only simple scalars. try using Storable (recently made threadsafe) to freeze and thaw your references into serialised structures (the following untested): use Storable ("thaw", "freeze"); use threads; use threads::shared; my @params : shared; my $frozen = freeze({ i

How to share a hash?

2005-04-25 Thread Чёрный|Список
 When I working with threads, I have to share a hash that should bevisible within each thread and out of them. I've intention to shiftthis hash within sub blah {} for a single element every time sub'scall is happen. A result for array will be printed anyway weitherit's shared or not, but a r

DBD::MySQL - new builds available

2005-04-25 Thread jeff griffiths
Recently we published new ppm packages for DBD::mysql; these packages are built using the new client libraries and support connecting to MySQL Server versions 4.1 and 5.0 ( as well as previous versions ). Just search in ppm3 for DBD-mysql and install one of the version 2.9006 packages that come

.htpasswd for win32 apache

2005-04-25 Thread Chris
Gurus, I'm trying to write .htpasswd files but having no luck. The code below executes with no errors, but apache does not seem to recognize the passwords it generates on win32. It works fine on Linux. Any Ideas? - Chris $the_user='test'; $temp_pass='test'; $the_salt = 'abc'; # normally a rand

RE: Finding the number of CPUs on a windows 2003 terminal server

2005-04-25 Thread Peter Eisengrein
Does $ENV{'NUMBER_OF_PROCESSORS'} have the info you want, or are you looking for something else? > -Original Message- > From: Sandhu, Suchindra [mailto:[EMAIL PROTECTED] > Sent: Monday, April 25, 2005 9:45 AM > To: perl-win32-users@listserv.ActiveState.com > Subject: Finding the number o

RE: Finding the number of CPUs on a windows 2003 terminal server

2005-04-25 Thread Conor Lillis
Title: RE: Finding the number of CPUs on a windows 2003 terminal server mess with this it will give all you want and more ;-) http://www.roth.net/perl/scripts/scripts.asp?SrvCpuMem.pl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sandhu, Suchindr

Finding the number of CPUs on a windows 2003 terminal server

2005-04-25 Thread Sandhu, Suchindra
hello, Is there a way to find the number of CPUs on a windows 2003 terminal server from command line or a perl program? I tried googling it, but it did not help at all. Thanks, -- /s ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveSt

RE: perl56 to 58...delay on line prints

2005-04-25 Thread John Serink
Turn on autoflushing to STDIO. Will fix it. Cheers, John > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Rogers > Sent: Sunday, April 24, 2005 6:04 AM > To: Perl-Win32-Users > Subject: perl56 to 58...delay on line prints > > > I just upgr