Re: cron problem
Jay Strauss <[email protected]>
| Newsgroups | gmane.org.user-groups.luni.tech |
|---|---|
| Message-ID | <[email protected]> |
Some already mentioned the but nearly ever Cron issue arises from environment issue Cron does not have the same environmental cars as a regular login shell I usually do a: env > out.txt >From within Cron to see my Cron env then need to write a Script to mod my env prior to calling my real script Sent from my iPhone On Jan 12, 2011, at 3:01 PM, Richard Reina <[email protected]> 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 <[email protected]> wrote: >> >> On Wed, Jan 12, 2011 at 12:59 PM, Carl Karsten <[email protected]> wrote: >>> On Wed, Jan 12, 2011 at 12:28 PM, Richard Reina >>> <[email protected]> wrote: >>>> I have the following cron jobs set up: >>>> >>>> #crontab -l >>>> 1 9 * * 1 /usr/bin/perl /usr/local/src/scripts/inactive.pl >>>> 1 14 * * 1-6 /usr/bin/perl /usr/local/src/scripts/upcoming.pl >>> >>> I kinda remember what the 5 crontab time slots are... but save us the >>> trip to the google and tell us what they are, and how stuff like 1-6 >>> works. >>> >>> >>>> >>>> The first script (inactive.pl) executes, the second one does not. Would anyone have an idea on what I could doing wrong? >> >> And cron emails sdtout to the user. what is in root's email? >> >> >> -- >> Carl K >> -- >> Linux Users Of Northern Illinois (Chicago) - Technical Discussion >> http://luni.org/mailman/listinfo/luni >> > > -- > Richard Reina > Rush Logistics, Inc. > Watch our 3 minute movie: > http://www.rushlogistics.com/movie > > -- > Linux Users Of Northern Illinois (Chicago) - Technical Discussion > http://luni.org/mailman/listinfo/luni -- Linux Users Of Northern Illinois (Chicago) - Technical Discussion http://luni.org/mailman/listinfo/luni