Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    April 19th, 2008
    Posts
    15
    Help setting my cron job!
    Hey guys, I have a small problem that I can't seem to figure out...

    I set up a cron job with my host company, godaddy to a file "mydomain.com/autoresponse/activate.cgi"

    but this is the response I am getting:

    Can't locate swars.cgi in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/autoresponse /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /var/chroot/home/content/y/o/g/yogicchai/html/cgi-bin/autoresponse/activate.cgi line 44.

    The file "activate.cgi" is:
    ===============================

    #!/usr/bin/perl

    use lib '/usr/local/etc/httpd/cgi-bin/autoresponse';

    chdir '/usr/local/etc/httpd/cgi-bin/autoresponse';

    ###

    $activate = 1;
    require "swars.cgi";

  2. #2
    ABW Ambassador PatrickAllmond's Avatar
    Join Date
    September 20th, 2005
    Location
    OKC
    Posts
    1,219
    My first guess would be to give an explicit path to swars.cgi.

    Don't assume that the cron job starts in the same folder as your script . That require statement may need to look like:

    require '/mydomain.com/autoresponse/swars.cgi'
    ---
    This response was masterly crafted via the fingers of Patrick Allmond who believe you should StopDoingNothing starting today.
    ---
    Focus Consulting is where I roll | Follow @patrickallmond on Twitter
    Search Engine Marketing | Search Engine Optimization | Social Media | Online Video

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Hostgator Cron Job
    By Code Monkey in forum Midnight Cafe'
    Replies: 3
    Last Post: June 2nd, 2008, 08:30 PM
  2. Deleted Cron Job
    By bettylou in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: March 27th, 2008, 12:55 AM
  3. Cron Job Question
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 9
    Last Post: March 18th, 2008, 01:13 PM
  4. Cron job
    By templus in forum ShareASale - SAS
    Replies: 22
    Last Post: July 29th, 2007, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •