| Garry |
|
NetHosted Customer

Joined: 03 Oct 2005 Posts: 261 Location: Lincoln, UK
|
Posted: Fri Apr 25, 2008 10:00 am Post subject: cron job question |
| |
Hi,
How would I go about running these 2 address as cron jobs ?
http://xxx.xxx.com/cron.php?xx=on
/home/username/public_html/xxx/cron.php?xx=on
http://xxx.xxx.com/cron.php?xx=off
/home/username/public_html/xxx/cron.php?xx=off
Also would it be possible to run it from
/home/username/cron.php?xx=XXX ? _________________ Regards,
Garry
Happy NetHosted Customer |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
Posted: Fri Apr 25, 2008 10:40 am Post subject: |
| |
Hi,
To run a URL as a cron job use wget or lynx e.g.:
lynx -source http://xxxxxx.com/
to run a php file directly use php itself e.g.:
php -q /home/username/cron.php
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
| Garry |
|
NetHosted Customer

Joined: 03 Oct 2005 Posts: 261 Location: Lincoln, UK
|
Posted: Fri Apr 25, 2008 11:38 am Post subject: |
| |
Hi,
Thanks Andrew
Just like to confirm which I am 99.999999999999999% sure of, that files in /home/username are security and can only be seen via full FTP access or in cPanel file manager _________________ Regards,
Garry
Happy NetHosted Customer |
|
| Back to top |
|
| NetHosted - Andrew |
|
NetHosted Staff

Joined: 22 Mar 2004 Posts: 5684
|
Posted: Fri Apr 25, 2008 11:40 am Post subject: |
| |
Hi,
No problem.
Files located in /home/username/ are not accessible over the web directly so this is a more secure location than placing them in your public_html folder.
Thanks,
Andrew _________________ | Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think of NetHosted! |
|
| Back to top |
|
User Permissions |
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 vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
| |