| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | ![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Anyone have any experience with cron?
I have written a reminder script and need a cron job to execute a php script daily. The times isn't a problem just the command line. Normally i would write Code:
"linx-dump http://www.my/scipt.php" I have tried wget and php q/ and don't know what else to try.......anyone help? I originally wanted to have the file in a secure .htaccess protected folder but obviously it wouldn't run due to authorization Thx Jon
__________________
West Dorset Community |
|
|||
|
Here is what I use to email me the error log of the sites I host:
php /home/baldockw/emailerrors.php |
|
|||
|
Thx mate...
I am having huge problems running mine, i have tried that but to no avail. I am wondering if it is because my script also has a couple of 'include' files embeded. They don't seem to parse. Script and cron runs fine when located in the root and all paths are correct. Can't seem to find much help via search either.
__________________
West Dorset Community |
|
|||
|
Hmm, doing it via "php " should parse it as any other php file includes and all. I'm not experienced enough with cron to say for sure though.
|
|
|||
|
Same here, maybe because it is not in the root?? I really don't know
__________________
West Dorset Community |
|
|||
|
My script isn't in the web root either, it is one back from public_html.
|
|
|||
|
linx-dump is unrecognized shell command. Seems like you are using this information from some other website as we dont have any such command on any of our linux servers.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting AIM : webredback || msn : andrew @ webhosting.uk.com Toll Free : 0808 262 0855 |
|
|||
|
I don't know what you mean by this admin but can assure you it works fine on your server. Am using it now while i figure out why i can't parse the script above public_html.
__________________
West Dorset Community |
|
|||
|
I managed to find the problem which should have been obvious but wasn't to me. Maybe of interest to someone in the future.
All include/require paths have to be 'absolute paths' not urls. ![]()
__________________
West Dorset Community |
![]() |
| Thread Tools | |
| Display Modes | |
|
|