Results 1 to 11 of 11
  1. #1
    Newbie
    Join Date
    April 19th, 2008
    Posts
    15
    What's wrong with this code?
    My files are at: www.mydomain.com/cgi-bin/autoresponse

    Instructions:

    ### These lines added to allow this script to be run from CRON
    ### It identifies the folder where the Follow-Up email Autoresponder scripts are installed
    ### Uncomment the two lines below and put it your proper path.
    ### Added by 3rd Coast Technologies November 7, 2003
    ### http://www.3rdcoast.com
    ===============================

    #!/usr/bin/perl

    ###I then uncomment the line below:

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

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

    ###

    $activate = 1;
    require "/usr/local/etc/httpd/cgi-bin/autoresponsee/swars.cgi";

    and I get this response:

    Can't locate /usr/local/etc/httpd/cgi-bin/autoresponsee/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.

    Any suggestions?
    Last edited by loxly; June 21st, 2008 at 04:25 PM. Reason: unlinked unintentional hotlinks

  2. #2
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    I don't know anything about the code, but it looks like you have one "e" too many in autoresponse:
    "/usr/local/etc/httpd/cgi-bin/autoresponsee/swars.cgi"
    and a few extra spaces in directory names?

  3. #3
    Newbie
    Join Date
    April 19th, 2008
    Posts
    15
    I fixed the extra "e" and still get:

    Can't locate /usr/local/etc/httpd/cgi-bin/autoresponse/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.

    thoughts?

  4. #4
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    n/autoresponse /usr/lib/perl
    86-linux-thread-multi /usr/lib/perl5/v
    There is still an extra space in your filenames in a few places

  5. #5
    ABW Ambassador superCool's Avatar
    Join Date
    April 23rd, 2008
    Location
    Texas
    Posts
    1,268
    if you are building that directory list in your script you might want to trim each piece before adding it to the list. maybe you have an extra space in there somewhere and it needs to be stripped out. another thing to try would be to put your file at the lowest level and try that. then if that works move it up one level and so on until you have it where you want it. somewhere along the way you might find your problem.

    good luck

  6. #6
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    I don't do perl, so forgive me if this is off-base. But if I were debugging that, I'd parse that error message in parts.

    Can't locate /usr/local/etc/httpd/cgi-bin/autoresponse/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.

    Break it down.

    Can't locate /usr/local/etc/httpd/cgi-bin/autoresponse/swars.cgi - are we sure that exists somewhere?

    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 .) - first, is INC supposed to be all capitalized? (again, not a perl guy ) but this says to me, it's looking in all these files for what it's looking for. Are these the right files for it to be searching?

    at /var/chroot/home/content/y/o/g/yogicchai/html/cgi-bin/autoresponse/activate.cgi line 44. - what is at line 44 in that file? The call to swars.cgi?

    I don't have an answer for you, but maybe this might point your mind in a direction to find the answer.
    Daniel M. Clark
    Tech Manager
    Greg Hoffman Consulting

  7. #7
    Newbie
    Join Date
    April 19th, 2008
    Posts
    15
    I think the problem is that I am not adding the proper path.

    The instructions said:

    ### Uncomment the two lines below and put it your proper path.

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

    (is this the proper path if my autoresponse directory is in www.mydomain.com/cgi-bin/autoresponse)?

  8. #8
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    Based on the error message, your full path appears to be this:

    /var/chroot/home/content/y/o/g/yogicchai/html/cgi-bin/autoresponse/
    Daniel M. Clark
    Tech Manager
    Greg Hoffman Consulting

  9. #9
    Newbie
    Join Date
    April 19th, 2008
    Posts
    15
    Thanks Hectic!

    I changed the path as you suggested and it seems the problem is solved!

    thanks again!

  10. #10
    ABW Ambassador Daniel M. Clark's Avatar
    Join Date
    January 7th, 2006
    Location
    Houston, TX
    Posts
    2,082
    Hey what do you know, I can debug perl lol

    Glad you got it worked out
    Daniel M. Clark
    Tech Manager
    Greg Hoffman Consulting

  11. #11
    ABW Ambassador superCool's Avatar
    Join Date
    April 23rd, 2008
    Location
    Texas
    Posts
    1,268
    nice work chaps

  12. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. What's wrong with this code?
    By allpurposeguru in forum Midnight Cafe'
    Replies: 3
    Last Post: March 7th, 2011, 04:14 PM
  2. test purchase: wrong sale amount, therefore wrong commission
    By hungirl in forum Commission Junction - CJ
    Replies: 19
    Last Post: December 6th, 2004, 04:07 AM

Posting Permissions

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