On Thu, 2002-11-14 at 06:01, [EMAIL PROTECTED] wrote:
> Hello
> 
> I want to use crond for launching a script every hour.
> 
> in a shell, my script is oukay but when i put it incrond i've got this mail (root)
> 
> <<<
> From: daemon
> To: root
> 
> 
> Open Client Message:
> Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
> Message String: ct_init(): network packet layer: internal net library error: Attempt 
>to load protocol driver failed
> install_driver(Sybase) failed: DBD::Sybase initialize: ct_init(112) failed at 
>/opt/perl/5.005_03/lib/5.00503/aix/DynaLoader.pm line 188.
> 
>  at /home/jul/dbi_sc.pl line 56
> >>>

To expand on what others have said - you need to make sure that the
SYBASE env. variable is set. As you now know it doesn't get set
automatically for cron jobs on Solaris. You can set it in the script
before you call DBI->connect():

$ENV{SYBASE} = '/path/to/sybase';

> 
> line 56 is the open fonction to a sybase server
> 
> 
> 
> 
> 
> 
> *******************************************************************
> L'integrite de ce message n'etant pas assuree sur internet, Natexis
> Banques Populaires ne peut etre tenu responsable de son contenu.
> Toute utilisation ou diffusion non autorisee est interdite. Si vous
> n'etes pas destinataire de ce message, merci de le detruire et
> d'avertir l'expediteur.
> 
> The integrity of this message cannot be guaranteed on the Internet.
> Natexis Banques Populaires can not therefore be considered
> responsible for the contents.
> Any unauthorized use or dissemination is prohibited. If you are not
> the intended recipient of this message, then please delete it and 
> notify the sender.
> *******************************************************************
-- 
Michael Peppler / [EMAIL PROTECTED] / http://www.mbay.net/~mpeppler
[EMAIL PROTECTED] / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to