2011-08-31 698 views

Respuesta

17

agregar esto a/etc/crontab

0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php 

otra parte, crear un script de shell en el /etc/cron.hourly

del archivo: wget

#!/bin/sh 
wget -O - -q -t 1 http://www.example.com/cron.php 

asegúrese Chmod + x wget (o el nombre de archivo que eligió)

+6

Para quienes vienen preguntándose qué significan las opciones: En silencio (-q) intente 1 t ime (-t 1) para wget http://www.example.com/cron.php y no envíe la salida a ninguna parte (-O -). –

Cuestiones relacionadas