Jump to content

Running cron jobs on cPanel


underdog4321

Recommended Posts

I have a website on this host, that has a cPanel 10 interface.

I want to run [a href=\"http://www.domain.com/mycron.php?id=12345\" target=\"_blank\"]http://www.domain.com/mycron.php?id=12345[/a] on a regular basis, using a cron job.

But when i enter these details into a cron job using the cPanel interface (Cron jobs -> Standard), with the full url and all, i get a "no such file or directory".

 

UPDATE:

I understand that I need to use lynx, but when i do the following cron job:

* * * * * * /usr/bin/lynx -dump /home/mysite/public_html/mycron.php

 

i get in my mail the php script itself, and not it's output. meaning:

<?PHP

echo "hello world";

?>

 

What am i doing wrong?

Link to comment
https://forums.phpfreaks.com/topic/3208-running-cron-jobs-on-cpanel/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.