Jump to content

Recommended Posts

Posted

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

Posted

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!

Posted

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!

Posted

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.

Posted

Yep, that's what I'm using. And I'm wondering if I'm missing any Perl modules. Any thoughts?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...