Jump to content

Path For Cron Job?


Recommended Posts

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



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!



Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

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

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...