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

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form