[ Index ]

PHP Cross Reference of Documentation Magento

title

Body

[close]

/ -> cron.sh (source)

   1  #!/bin/sh
   2  # location of the php binary
   3  if [ ! "$1" = "" ] ; then
   4  CRONSCRIPT=$1
   5  else
   6  CRONSCRIPT=cron.php
   7  fi
   8  
   9  PHP_BIN=`which php`
  10  
  11  # absolute path to magento installation
  12  INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'`
  13  
  14  #    prepend the intallation path if not given an absolute path
  15  if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then
  16      if ! ps auxwww | grep "$INSTALLDIR""$CRONSCRIPT" | grep -v grep 1>/dev/null 2>/dev/null ; then
  17      $PHP_BIN "$INSTALLDIR""$CRONSCRIPT" &
  18      fi
  19  else
  20      if  ! ps auxwww | grep " $CRONSCRIPT" | grep -v grep | grep -v cron.sh 1>/dev/null 2>/dev/null ; then
  21          $PHP_BIN $CRONSCRIPT &
  22      fi
  23  fi


Développement Magento e-commerce Montréal
Generated: Thu Feb 21 16:42:07 2013 Cross-referenced by PHPXref 0.7.1