Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot run script from unix cron

Status
Not open for further replies.

hacox

Programmer
Jun 4, 2002
10
0
0
US
I am receiving this error message when I run my script from cron.
Can't locate mskUtil.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris
/usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/
5.005 .) at /export/home/entDEV/bin/unloadSDB.pl line 35.
BEGIN failed--compilation aborted at /export/home/entDEV/bin/unloadSDB.pl line 3
5.

The module is located in $HOME/lib. Which I have defined in the ENV variable PERLLIB. What else can I be missing?

Example of the code:

#!/usr/bin/perl
$ENV{'PERLLIB'}="$ENV{'HOME'}/lib";
use mskUtil;
exit;

 
Never mind I found what I needed...

use lib "$ENV{'HOME'}/lib";

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top