How to check /root/cron.php/ is working or not Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?My cron job and cron.php fails?Change order status using cron job in command linemagento cron job is working or not? how to check?Why multiple core_email_queue_send_all created in cron_schedule?Change Order status automatically when product is delivered based on fedexCron is working but Last heartbeat is older than one hourCron.php not working using cronjob setting from Cpanel and no confirmation mail send to customer in magento 1.9.2.4PHP Fatal error: Class 'MagentoUpdateStatus' not foundMagento 1.9 Cron.php Works, Cron.sh Does Not

Why is there so little support for joining EFTA in the British parliament?

French equivalents of おしゃれは足元から (Every good outfit starts with the shoes)

Can two people see the same photon?

Did any compiler fully use 80-bit floating point?

How many time has Arya actually used Needle?

Weaponising the Grasp-at-a-Distance spell

What does 丫 mean? 丫是什么意思?

New Order #6: Easter Egg

Adapting the Chinese Remainder Theorem (CRT) for integers to polynomials

What are some likely causes to domain member PC losing contact to domain controller?

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

How to achieve cat-like agility?

.bashrc alias for a command with fixed second parameter

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Fit odd number of triplets in a measure?

Russian equivalents of おしゃれは足元から (Every good outfit starts with the shoes)

The Nth Gryphon Number

How to resize main filesystem

Plotting a Maclaurin series

Any stored/leased 737s that could substitute for grounded MAXs?

Flight departed from the gate 5 min before scheduled departure time. Refund options

malloc in main() or malloc in another function: allocating memory for a struct and its members

Centre cell vertically in tabularx

Why are current probes so expensive?



How to check /root/cron.php/ is working or not



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?My cron job and cron.php fails?Change order status using cron job in command linemagento cron job is working or not? how to check?Why multiple core_email_queue_send_all created in cron_schedule?Change Order status automatically when product is delivered based on fedexCron is working but Last heartbeat is older than one hourCron.php not working using cronjob setting from Cpanel and no confirmation mail send to customer in magento 1.9.2.4PHP Fatal error: Class 'MagentoUpdateStatus' not foundMagento 1.9 Cron.php Works, Cron.sh Does Not



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.



but i don't know to check cron schedules are working or not. Any manual trick to check the cron are working or not?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Did you get what you want?

    – Rohit Kundale
    Mar 12 '16 at 11:22












  • no. i have not got any solution for this. :(

    – Ajay Patel
    Mar 12 '16 at 11:30











  • Did you tried putting mage::log() In cron.php file?. Is there any log generating?

    – Rohit Kundale
    Mar 12 '16 at 11:45

















1















I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.



but i don't know to check cron schedules are working or not. Any manual trick to check the cron are working or not?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Did you get what you want?

    – Rohit Kundale
    Mar 12 '16 at 11:22












  • no. i have not got any solution for this. :(

    – Ajay Patel
    Mar 12 '16 at 11:30











  • Did you tried putting mage::log() In cron.php file?. Is there any log generating?

    – Rohit Kundale
    Mar 12 '16 at 11:45













1












1








1








I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.



but i don't know to check cron schedules are working or not. Any manual trick to check the cron are working or not?










share|improve this question














I have create fedex module that complate the order status based on product delivery status and setup with /root/cron.php/.



but i don't know to check cron schedules are working or not. Any manual trick to check the cron are working or not?







magento-1.9 cron fedex






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 12 '16 at 5:32









Ajay PatelAjay Patel

1,0491628




1,0491628





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Did you get what you want?

    – Rohit Kundale
    Mar 12 '16 at 11:22












  • no. i have not got any solution for this. :(

    – Ajay Patel
    Mar 12 '16 at 11:30











  • Did you tried putting mage::log() In cron.php file?. Is there any log generating?

    – Rohit Kundale
    Mar 12 '16 at 11:45

















  • Did you get what you want?

    – Rohit Kundale
    Mar 12 '16 at 11:22












  • no. i have not got any solution for this. :(

    – Ajay Patel
    Mar 12 '16 at 11:30











  • Did you tried putting mage::log() In cron.php file?. Is there any log generating?

    – Rohit Kundale
    Mar 12 '16 at 11:45
















Did you get what you want?

– Rohit Kundale
Mar 12 '16 at 11:22






Did you get what you want?

– Rohit Kundale
Mar 12 '16 at 11:22














no. i have not got any solution for this. :(

– Ajay Patel
Mar 12 '16 at 11:30





no. i have not got any solution for this. :(

– Ajay Patel
Mar 12 '16 at 11:30













Did you tried putting mage::log() In cron.php file?. Is there any log generating?

– Rohit Kundale
Mar 12 '16 at 11:45





Did you tried putting mage::log() In cron.php file?. Is there any log generating?

– Rohit Kundale
Mar 12 '16 at 11:45










2 Answers
2






active

oldest

votes


















0














You can add this to cron.sh after the INSTALLDIR variable is set:



# absolute path to magento installation
INSTALLDIR=`echo $0 | sed 's/cron.sh//g'`
date >> "$0".log
whoami >> "$0".log


And this to cron.php after the dispatchEvent call:



Mage::dispatchEvent('default');
$log = fopen(__FILE__.'.log', 'a');
fwrite($log, date("Y-m-d H:i:s").PHP_EOL);
fclose($log);


After 6 minutes you should see both these files in Magento's directory if cron is running.



./cron.php.log
./cron.sh.log


If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.



<?php
$pathToCron = dirname(__FILE__)."/cron.sh";
exec( "sh $pathToCron > /dev/null &" );


Another workaround



*/5 * * * * /usr/bin/wget http://your_webpage.com/cron.php


You can check more information here



Hope this helps






share|improve this answer






























    0














    1. Straight forward way would be to configure
       */5 * * * * /usr/bin/bash /path_to/cron.php 
      in cron tab.

    2. Backup and Truncate cron_schedule table.

    3. Wait for cron run. Cron will insert the data.

    4. You can also check by hitting cron.php from the URL.

    Note : I would not recommend configuring cron with wget.






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f105911%2fhow-to-check-root-cron-php-is-working-or-not%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      You can add this to cron.sh after the INSTALLDIR variable is set:



      # absolute path to magento installation
      INSTALLDIR=`echo $0 | sed 's/cron.sh//g'`
      date >> "$0".log
      whoami >> "$0".log


      And this to cron.php after the dispatchEvent call:



      Mage::dispatchEvent('default');
      $log = fopen(__FILE__.'.log', 'a');
      fwrite($log, date("Y-m-d H:i:s").PHP_EOL);
      fclose($log);


      After 6 minutes you should see both these files in Magento's directory if cron is running.



      ./cron.php.log
      ./cron.sh.log


      If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.



      <?php
      $pathToCron = dirname(__FILE__)."/cron.sh";
      exec( "sh $pathToCron > /dev/null &" );


      Another workaround



      */5 * * * * /usr/bin/wget http://your_webpage.com/cron.php


      You can check more information here



      Hope this helps






      share|improve this answer



























        0














        You can add this to cron.sh after the INSTALLDIR variable is set:



        # absolute path to magento installation
        INSTALLDIR=`echo $0 | sed 's/cron.sh//g'`
        date >> "$0".log
        whoami >> "$0".log


        And this to cron.php after the dispatchEvent call:



        Mage::dispatchEvent('default');
        $log = fopen(__FILE__.'.log', 'a');
        fwrite($log, date("Y-m-d H:i:s").PHP_EOL);
        fclose($log);


        After 6 minutes you should see both these files in Magento's directory if cron is running.



        ./cron.php.log
        ./cron.sh.log


        If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.



        <?php
        $pathToCron = dirname(__FILE__)."/cron.sh";
        exec( "sh $pathToCron > /dev/null &" );


        Another workaround



        */5 * * * * /usr/bin/wget http://your_webpage.com/cron.php


        You can check more information here



        Hope this helps






        share|improve this answer

























          0












          0








          0







          You can add this to cron.sh after the INSTALLDIR variable is set:



          # absolute path to magento installation
          INSTALLDIR=`echo $0 | sed 's/cron.sh//g'`
          date >> "$0".log
          whoami >> "$0".log


          And this to cron.php after the dispatchEvent call:



          Mage::dispatchEvent('default');
          $log = fopen(__FILE__.'.log', 'a');
          fwrite($log, date("Y-m-d H:i:s").PHP_EOL);
          fclose($log);


          After 6 minutes you should see both these files in Magento's directory if cron is running.



          ./cron.php.log
          ./cron.sh.log


          If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.



          <?php
          $pathToCron = dirname(__FILE__)."/cron.sh";
          exec( "sh $pathToCron > /dev/null &" );


          Another workaround



          */5 * * * * /usr/bin/wget http://your_webpage.com/cron.php


          You can check more information here



          Hope this helps






          share|improve this answer













          You can add this to cron.sh after the INSTALLDIR variable is set:



          # absolute path to magento installation
          INSTALLDIR=`echo $0 | sed 's/cron.sh//g'`
          date >> "$0".log
          whoami >> "$0".log


          And this to cron.php after the dispatchEvent call:



          Mage::dispatchEvent('default');
          $log = fopen(__FILE__.'.log', 'a');
          fwrite($log, date("Y-m-d H:i:s").PHP_EOL);
          fclose($log);


          After 6 minutes you should see both these files in Magento's directory if cron is running.



          ./cron.php.log
          ./cron.sh.log


          If you have tried everything and still cant get cron to work, perhaps this unsupported workaround might help. Adding the following to the top of index.php will cause cron to run in the background whenever someone accesses your website.



          <?php
          $pathToCron = dirname(__FILE__)."/cron.sh";
          exec( "sh $pathToCron > /dev/null &" );


          Another workaround



          */5 * * * * /usr/bin/wget http://your_webpage.com/cron.php


          You can check more information here



          Hope this helps







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 12 '16 at 5:45









          Rohit KundaleRohit Kundale

          2,90711327




          2,90711327























              0














              1. Straight forward way would be to configure
                 */5 * * * * /usr/bin/bash /path_to/cron.php 
                in cron tab.

              2. Backup and Truncate cron_schedule table.

              3. Wait for cron run. Cron will insert the data.

              4. You can also check by hitting cron.php from the URL.

              Note : I would not recommend configuring cron with wget.






              share|improve this answer



























                0














                1. Straight forward way would be to configure
                   */5 * * * * /usr/bin/bash /path_to/cron.php 
                  in cron tab.

                2. Backup and Truncate cron_schedule table.

                3. Wait for cron run. Cron will insert the data.

                4. You can also check by hitting cron.php from the URL.

                Note : I would not recommend configuring cron with wget.






                share|improve this answer

























                  0












                  0








                  0







                  1. Straight forward way would be to configure
                     */5 * * * * /usr/bin/bash /path_to/cron.php 
                    in cron tab.

                  2. Backup and Truncate cron_schedule table.

                  3. Wait for cron run. Cron will insert the data.

                  4. You can also check by hitting cron.php from the URL.

                  Note : I would not recommend configuring cron with wget.






                  share|improve this answer













                  1. Straight forward way would be to configure
                     */5 * * * * /usr/bin/bash /path_to/cron.php 
                    in cron tab.

                  2. Backup and Truncate cron_schedule table.

                  3. Wait for cron run. Cron will insert the data.

                  4. You can also check by hitting cron.php from the URL.

                  Note : I would not recommend configuring cron with wget.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 12 '16 at 8:58









                  Senthil Kumar MuppidathiSenthil Kumar Muppidathi

                  1513




                  1513



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f105911%2fhow-to-check-root-cron-php-is-working-or-not%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                      Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?