Results 1 to 7 of 7

Thread: CRON Job not working
      
   

  1. #1
    buck1942 is offline Corporal
    Join Date
    Mar 2010
    Posts
    17

    Default CRON Job not working

    My User Name is "johndoessite"
    My script resides in "public_html/php"
    My script name is "displayevent.php"

    I have the CRON set to run every minute (only for testing) but get no results.

    The script runs, if I call it up direct in IE, using the correct webaddress. Here is the CRON job that I am trying to run:

    cd'/home/johndoessite/public_html/php/'; php -q 'displayevent.php' > /dev/null

    I must be missing something very obvious, but it has beaten me down... as I had it working a couple of weeks ago, but failed to write down the syntax.. it was so simple to figure out, that i tho't that I would not have a problem redoing it.

    The acutual script runs an email application (sending out about 2-10 emails) that works just fine, when I call it up direct.

    If someone sees something, I'd appreciate it.

    Thank you,

    Buck

  2. #2
    buck1942 is offline Corporal
    Join Date
    Mar 2010
    Posts
    17

    Default Re: CRON Job not working

    Is NO ONE using CRON jobs?

    Is it because it does not work or what am I missing?

    Buck

  3. #3
    ahimsa's Avatar
    ahimsa is offline Major General
    Join Date
    Jan 2009
    Location
    in the now :)
    Posts
    2,172

    Default Re: CRON Job not working

    .........maybe not too many folk know what the **** CRON is, actually!! I for sure have no idea lol
    Never measure the height of the mountain you're climbing. At the summit, look back and see how small it really is!

  4. #4
    buck1942 is offline Corporal
    Join Date
    Mar 2010
    Posts
    17

    Default Re: CRON Job not working

    I am making one last effort to see if CRON jobs is still a feature (as advertised on VODA) or has it has been discontinued and not taken off of the list of features.

    There is no support for it at any rate.

    Thank you,

    Buck

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: CRON Job not working

    cd'/home/johndoessite/public_html/php/'; php -q 'displayevent.php' > /dev/null

    cd '/home/cpanel_username/public_html/php/'; php -q 'displayevent.php' > /dev/null ;

    Even simply missing the ; at the end stops it from running.

    Try it and post back
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    buck1942 is offline Corporal
    Join Date
    Mar 2010
    Posts
    17

    Default Re: CRON Job not working

    Navaldesign,

    Sorry to say, no luck... I copied and pasted your line:

    cd '/home/cpanel_username/public_html/php/'; php -q 'displayevent.php' > /dev/null ;

    and changed "cpanel_username" to mine.

    Here is a link to an image showing my settings for the CRON job.

    http://screencast.com/t/xOCkmfKDiii

    I get no error msgs, altho' that would be a big help.

    Buck

  7. #7
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: CRON Job not working

    Not sure why you have this issue. My own cron jobs run regularly .
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49