PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Miao, Qian (PME)" <QianM at exchange dot ml dot com>
Subject: RE: Perl thru crontab
Date: Feb 1 2000 3:10PM

cron job doesn't take environment variables that you set for your command
shell environment. 
you can write a shell script to setup all necessary environment variables
first, then call your Perl script. 
Instead of running Perl script directly from crontab, you run this shell
script. this way you don't have to 
get your SA involved in set up  default cron variables.


> -----Original Message-----
> From:	Manjeet Kalsi [SMTP:manjeet.kalsi@prudential.com]
> Sent:	Tuesday, February 01, 2000 9:18 AM
> To:	SybPerl Discussion List
> Subject:	Perl thru crontab
> 
> 
> 
> 
> Gurus,
> 
> I am trying to run one of my programs as cron job and I get the following
> error.
>  Any ideas?
> Program runs fine from command line.
> 
> 
> 
> Can't load
> '/usr/local/lib/perl5/site_perl/ultra-solaris/auto/Sybase/CTlib/CTlib.so'
> for
> module
> Sybase::CTlib: ld.so.1: /usr/local/bin/perl: fatal: libct.so: open failed:
> No
> such file or directory
> at /usr/local/lib/perl5/DynaLoader.pm line 140.
> 
>  at /usr/local/lib/perl5/site_perl/Sybase/CTlib.pm line 845
> BEGIN failed--compilation aborted at /home/x098919/DBA/dbusage.pl line 18.
> 
> 
> 
> THANKS
> 
> Manjeet
>