Cron Job configuration

  • 02cordellj
  • Novice
  • Novice
  • 02cordellj
  • Posts: 33

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • 02cordellj
  • Novice
  • Novice
  • 02cordellj
  • Posts: 33

Post 3+ Months Ago

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
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida
  • 02cordellj
  • Novice
  • Novice
  • 02cordellj
  • Posts: 33

Post 3+ Months Ago

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 56 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.