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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.