Cron Job configuration

  • 02cordellj
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 23, 2006
  • Posts: 33
  • Status: Offline

Post December 23rd, 2006, 6:51 am

Hi,

I am quite new to PHP coding, and have minimal experience with a CPanel. I am trying to configure my cron jobs. ON the CPanel it gives the following information:

Hint: to run PHP files, enter the command as follows (modify to fit your needs):
GET http://yourdomain.com/path_to_file/file.php > /dev/null

Hint: to run CGI files, enter the command as follows (modify to fit your needs):
GET http://yourdomain.com/cgi-bin/path_to_file/file.cgi > /dev/null

my file is a PHP file, the file is on my domain (http://www.the-liberation.com) and the path to the file is public_html/cron_fivemins.php.

So i enter this as the command to run (as demonstrated in the CPanel): GET http://www.the-liberation.com.com/publi ... vemins.php > /dev/null.

This doesn't work, and the updates which are supposed to happen do not. I am not sure whether i have entered the command wrong or whether the script which is being executed is incorrect, so i am posting the script i am using in the PHP section to see if anyone can help there. For the meanwhile, is there anything i am doing wrong at the moment?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 23rd, 2006, 6:51 am

  • 02cordellj
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 23, 2006
  • Posts: 33
  • Status: Offline

Post December 23rd, 2006, 8:23 am

I was also wondering, if anyone here has cron jobs set up on the official cPanel, and if they have, would it be possible to send me a few screen prints so i can see what commands you are running. This would be even more helpful if you have your cron job scripts are PHP
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post December 23rd, 2006, 9:44 am

Strong with this one, the sudo is.
  • 02cordellj
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 23, 2006
  • Posts: 33
  • Status: Offline

Post December 26th, 2006, 9:30 am

OK...if this helps this is the command i am now running :

curl http://www.the-liberation.com/public_ht ... vemins.php > dev/null

and the error message i am getting is :

/bin/sh: line 1: dev/null: No such file or directory.

The first line of my code is (i think i need to change this, not sure though):

#!usr/bin/php
<?PHP

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 133 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.