Andrew Posted November 11, 2003 Posted November 11, 2003 Hey, all -- I want to run a simple cron job (it will check a POP account every 30 minutes for blog updates). The script is a Perl file, pop2blog.pl. I put it in my /public_html/cgi-bin directory and try to set up a cron job, but I get this error: /bin/sh: /cgi-bin/pop2blog.pl: No such file or directory The command I give Cron Manager to run is /cgi-bin/pop2blog.pl I tried /home/akantor/public_html/cgi-bin/pop2blog.pl -- no luck. What's the proper place for the Perl script and what's the proper command line for the Cron manager? Thanks for your help! Andrew Quote
Andrew Posted November 11, 2003 Author Posted November 11, 2003 As a follow up: I tried moving the pop2blog.pl file to /home/akantor/pop2blog.pl but got the error /bin/sh: /home/akantor/pop2blog.pl: /usr/local/bin/perl: bad interpreter: Permission denied Any ideas? Help! Quote
Andrew Posted November 11, 2003 Author Posted November 11, 2003 Getting better, but not quite. Looked like a permissions problem, but now I get: Can't locate Mail/Box/Manager.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/akantor/pop2blog.pl line 18. BEGIN failed--compilation aborted at /home/akantor/pop2blog.pl line 18. I feel like I'm so close to this! Help! Quote
charle97 Posted November 11, 2003 Posted November 11, 2003 i'd rename pop2blog.pl to pop2blog.cgi and place the file in the cgi-bin. put >/home/akantor/public_html/cgi-bin/pop2blog.cgi in the command to run path. also, make sure that permissions are set to 755. Quote
Andrew Posted November 11, 2003 Author Posted November 11, 2003 No luck -- I get the same "Can't locate Mail/Box/Manager.pm in @INC..." error. Grr! Quote
charle97 Posted November 12, 2003 Posted November 12, 2003 are you using this? do you have all of the required perl modules installed? Quote
Andrew Posted November 12, 2003 Author Posted November 12, 2003 Yep, that's what I'm using. And I'm wondering if I'm missing any Perl modules. Any thoughts? Quote
jpickeri Posted November 12, 2003 Posted November 12, 2003 Go to your cpanel page and click on "Installed Perl Modules" ... if the module isn't listed, it isn't installed. If not submit a trouble ticket, and TCH may install it. I say "may", as the someone will review the module first before it will be installed. jim Quote
Andrew Posted November 12, 2003 Author Posted November 12, 2003 Ah, found the problem: Mail::POP3Client isn't installed. Thanks for your help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.