Re: cron problem

Clyde Forrester <[email protected]>
Newsgroups gmane.org.user-groups.luni.tech
Message-ID <[email protected]>
My suspicion is that, as someone else pointed out, cron and the console 
are different accounts, with different privileges, running from 
different working directories, with different environmental variables.

c4

Richard Reina wrote:
> Carl,
> 
> That was a very helpful idea. There is a message in my email that shows the error:
> 
> Can't locate Companies2.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at -e line 1.
> BEGIN failed--compilation aborted at /usr/local/src/ldisplay.pl line 15.
> Compilation failed in require at /usr/local/src/upcoming.pl line 71.
> 
> If I cut and paste the exact command from crontab -l and execute the prgram manually from the console I don't get this error.  I don't understand why cron has this problem?
-- 
Linux Users Of Northern Illinois (Chicago) - Technical Discussion 
http://luni.org/mailman/listinfo/luni
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.