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 Stather <statherm at home dot com>
Subject: Re: crontab env question
Date: Mar 27 2001 9:12PM

I would typically source a profile which I have for sybase .
This is typical of any script run from cron.
Or you could use a wrapper script which takes parameters to be called from cron
(the parameter is the full path to your script ) performs any preliminary work
(i.e. souring the profile) then the wrapper calls your script.
It isn't the nicest, some would call it ugly but it works.


"Cox, Mark" wrote:

> 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/'
> for module Sybase::CTlib: /bifeed/tools/bin/perl: fatal:
> open failed: No such file or directory at
> /bifeed/tools/lib/perl5/sun4-solaris/5.00404/ line 166.
>  at /cifeed/perl/ line 36
> BEGIN failed--compilation aborted at /cifeed/perl/ 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