The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-26-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Quote:
Originally Posted by kingdbag
30 * * * * wget -O /dev/null http://www.domain.com/inc/crontab.php

could always try something like this...
The OP said "Hi, I am trying to use a PHP script as a test for a cron job.", not accessing a PHP script (or other URLs via HTTP(S)) on a remote server in a cron job.

They are totally different things. Usually, what a cron job does is not something that should be accessible on the public Internet. If someone use your scheme to run a cron job with a http://localhost/... URL, that means the script is there for everyone on the Internet to execute (provided he/she knows the URL), no matter you like it or not.