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: "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

-----Original Message-----
From: Robert Lang []
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/ -a argument >>

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
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

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

Thanks for any help