Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/01/2013, 10:39
Avatar de function
function
 
Fecha de Ingreso: abril-2010
Mensajes: 278
Antigüedad: 14 años
Puntos: 13
Respuesta: cómo corro Cronjob

cnunez
m
aunque ya vi que te funciona, te dejo algunas explicaciones:

php -q script -> para cuando tengas CGI corriendo como modulo en apache

si lo que quieres es parsear un archivo -f es tu solucion

php5 tu archivo para ejecutarlo desde la terminal

si quieres as opciones:

Código BASH:
Ver original
  1. -a               Run as interactive shell
  2.   -c <path>|<file> Look for php.ini file in this directory
  3.   -n               No php.ini file will be used
  4.   -d foo[=bar]     Define INI entry foo with value 'bar'
  5.   -e               Generate extended information for debugger/profiler
  6.   -f <file>        Parse and execute <file>.
  7.   -h               This help
  8.   -i               PHP information
  9.   -l               Syntax check only (lint)
  10.   -m               Show compiled in modules
  11.   -r <code>        Run PHP <code> without using script tags <?..?>
  12.   -B <begin_code>  Run PHP <begin_code> before processing input lines
  13.   -R <code>        Run PHP <code> for every input line
  14.   -F <file>        Parse and execute <file> for every input line
  15.   -E <end_code>    Run PHP <end_code> after processing all input lines
  16.   -H               Hide any passed arguments from external tools.
  17.   -s               Output HTML syntax highlighted source.
  18.   -v               Version number
  19.   -w               Output source with stripped comments and whitespace.
  20.   -z <file>        Load Zend extension <file>.
__________________
~# echo Hemos logrado la independencia, pero no la libertad >> SimonBolivar