Jump to content

cron sitemap


davlinares

Recommended Posts

Creo que el comando es

php -q http://www.tuwebcom/modules/gsitemap/gsitemap-cron.php?token=12345678&id_shop=1 

Pero puede que tengas problemas con los permisos de ejecución.

 

Se pueden utilizar otros comandos como:

/usr/bin/curl http://www.tupagina.com/archivo.php 

e incluso hay una forma de usar wget pero con un modificador para que no descargue y ejecute.

 

Suerte

Link to comment
Share on other sites

Prueba con wget, yo no lo tengo configurado asi, pero puede que funcione:

 

 

You could tell wget to not download the contents in a couple of different ways:

wget --spider http://www.example.com/cronit.php

which will just perform a HEAD request but probably do what you want

wget -O /dev/null http://www.example.com/cronit.php

which will save the output to /dev/null (a black hole)

You might want to look at wget's -q switch too which prevents it from creating output

I think that the best option would probably be:

wget -q --spider http://www.example.com/cronit.php

that's unless you have some special logic checking the HTTP method used to request the page

 

En cpanel no estoy seguro, pero en plesk puedes poner un correo para que te notifique del estado de la tarea, por lo que cuando da errores puedes saber porque es debido. Si usas alojamiento compartido hay algunos comandos que no podrás ejecutar por falta de permisos en el servidor.

Link to comment
Share on other sites

  • 11 months later...

Es un post antiguo, pero por si a alguien lo busca (como ha sido mi caso), el comando que me sirve es:

 

curl -s http://www.tuwebcom/modules/gsitemap/gsitemap-cron.php?token=12345678&id_shop=1

 

Si tenéis una web con HTTPS es necesario añadirle -k, quedando así

 

curl -k -s http://www.tuwebcom/modules/gsitemap/gsitemap-cron.php?token=12345678&id_shop=1 

 

 

Un saludo.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...