|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2003
18 posts
Gave thanks: 0
Thanked 0 times
|
I understand what a cron job is, but I don't know how it is exactly setup. I went to Cron Jobs and selected my timeline (that was easy), as for the command to run, there is a file I have on my site that I need to run. Do I simply put the file location in the command line? IE- www.myweb.com/dir/cron.file.php
I would be great if that is all I have to do. If anyone could affirm that's all I have to do, great. If not, let me know what I need to do. Thanx in advance.
__________________
www.bartoinc.com server: Ping |
|
|
|
|
#2 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,265 posts
Gave thanks: 3
Thanked 27 times
|
That will not execute your php script for you. I'm pretty sure dumping a php script will run it though. Try this:
Code:
lynx -dump http://www.myweb.com/dir/cron.file.php > /dev/null
__________________
![]() ![]() ![]() ![]() ![]() ![]()
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jan 2004
1 posts
Gave thanks: 0
Thanked 0 times
|
Well it depends on if you want to run a remote or a local PHP script. PHP actually has a commandline based interpreter which (I believe) is at /usr/bin/php so you can run a local PHP script like this:
/usr/bin/php /path/to/your/script.php Of course that may not be what you want. When running locally it does not go through apache and it isn't really considered like a webpage. Use lynx if you want it to act like a webpage. |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|