Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: michael dot peppler at bnpparibas dot com
Subject: RE: sybperl and perl ithreads
Date: Sep 22 2005 11:27AM

Threads should normally work, although I stay away from them. You can
achieve a similar result with multiple child processes forked from a main
"parent" process that handles the coordination. There are some modules on
CPAN that make that sort of thing easier (Parallele::ForkManager, for


Internet - 22/09/2005 13:15

Please respond to

Sent by:

To:    Michael PEPPLER

cc:    sybperl-l

Subject:    RE: sybperl and perl ithreads

Hi Michael,

Sybase : 12.5
Perl : 5.8.6
Sybperl : 2.18

I get the following errors:

      Use of uninitialized value in numeric lt (<) at sybping_ctlib
line 199.
      Subroutine Sybase::CTlib::CS_SUCCEED redefined at (eval 12) line

The code near line 199 is:

      sub f_ctlib_srv_cb
            return CS_SUCCEED if ($severity < 17);

Thanks and regards,

-----Original Message-----
From: []
On Behalf Of
Sent: Thursday, September 22, 2005 8:07 PM
Subject: Re: sybperl and perl ithreads

Which version of perl, which version of sybperl and which version of


Internet - 22/09/2005 12:58

Please respond to

Sent by:

To:    sybperl-l


Subject:    sybperl and perl ithreads


Has anybody experienced problems while using perl threads with sybperl?

I was trying to write a sybping program. We have about 200 servers.
The program takes about 45 seconds to check all the servers.

I thought that maybe I could reduce the time by using threads in perl.

When I use threads, the program returns errors.
These have to do with the parameters in the callback routines being

Thanks for your help in advance.

Best regards,

This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.


Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.

Note: This e-mail contains privileged and confidential information and is
for the sole use of the intended recipient(s).  If you are not an intended
recipient, you are hereby kindly requested to refrain from printing,
copying, or distributing the information contained herein.  Furthermore,
any other use of the information contained herein is strictly prohibited.
If you have received this transmission in error, please kindly notify the
sender immediately and destroy all copies of the original message.