How to check /root/cron.php/ is working or notMy 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

Processing ADC conversion result: DMA vs Processor Registers

Test if all elements of a Foldable are the same

How did Elite on the NES work?

Will I be more secure with my own router behind my ISP's router?

Eigenvalues of the Laplacian of the directed De Bruijn graph

How to keep bees out of canned beverages?

Can gravitational waves pass through a black hole?

How was Lagrange appointed professor of mathematics so early?

Arriving in Atlanta (after US Preclearance in Dublin). Will I go through TSA security in Atlanta to transfer to a connecting flight?

Why did Israel vote against lifting the American embargo on Cuba?

How to begin with a paragraph in latex

`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY

Was Objective-C really a hindrance to Apple software development?

Raising a bilingual kid. When should we introduce the majority language?

Is there a possibility to generate a list dynamically in Latex?

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Is there an efficient way for synchronising audio events real-time with LEDs using an MCU?

Is it accepted to use working hours to read general interest books?

Preserving file and folder permissions with rsync

What to do with someone that cheated their way though university and a PhD program?

Marquee sign letters

What is a 'Key' in computer science?

What's parked in Mil Moscow helicopter plant?

Coin Game with infinite paradox



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


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






















  • 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






















  • 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














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












share










share



share










asked Mar 12 '16 at 5:32









Ajay PatelAjay Patel

1,0491628




1,0491628












  • 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






























    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






























      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



























        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

























          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













          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











          share


          share










          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



























                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

























                  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













                  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











                  share


                  share










                  answered Mar 12 '16 at 8:58









                  Senthil Kumar MuppidathiSenthil Kumar Muppidathi

                  1513




                  1513













                      Popular posts from this blog

                      Sum ergo cogito? 1 nng

                      三茅街道4182Guuntc Dn precexpngmageondP