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: "Cox, Mark" <Mark dot Cox at FMR dot COM>
Subject: RE: crontab env question
Date: Mar 28 2001 1:39PM

Thanks for the advice. I ended up writing a unix script that set the
environment and then called the perl program.  Kind of like what you do on
the command line itself.  


Thanks again
Mark

-----Original Message-----
From: Robert Lang [mailto:rlang@lincap.com]
Sent: Tuesday, March 27, 2001 10:41 AM
To: SybPerl Discussion List
Subject: RE: crontab env question


I do it in the cron entry itself.  Something like this:

30 06 * * 2-6 (export SYBASE;SYBASE=/sybase; /home/foo/bar.pl -a argument >>
/home/foo/bar.log)

Non-optimal but the best that I can do on this solaris box.


-----Original Message-----
From: Cox, Mark [mailto:Mark.Cox@FMR.COM]
Sent: Tuesday, March 27, 2001 9:08 AM
To: SybPerl Discussion List
Subject: crontab env question





Hopefully a simple question but a little off topic:

CT-Lib runs great from the command line but when I try to run a job using
crontab I get an error like this:

Can't load
'/bifeed/tools/lib/perl5/site_perl/sun4-solaris/auto/Sybase/CTlib/CTlib.so'
for module Sybase::CTlib: ld.so.1: /bifeed/tools/bin/perl: fatal: libct.so:
open failed: No such file or directory at
/bifeed/tools/lib/perl5/sun4-solaris/5.00404/DynaLoader.pm line 166.

 at /cifeed/perl/read_cfmt_compass.pl line 36
BEGIN failed--compilation aborted at /cifeed/perl/read_cfmt_compass.pl line
36.


I realize that it is the enviromental variables not getting set but I have
them set in my .cshc file.  Where do I need to set the variables for crontab
to pick them up or am I force to set them in a script before I run each
program?

Thanks for any help 

Mark