This post is a request for assistance; I have read the forum guidelines and believe this post doesn't violate any. I found Geekzone.co.nz through searching for help with Telecom NZ web hosting, and I have searched the forum for topics related to this problem, but have not found the topic posted previously.
I am curious as to whether anyone on here is familiar with Telecom's Unix Web Hosting, in particular if anybody has been able to set up a scheduled task (i.e. Cron task) successfully via the provided control panel software.
My first port of call was to ask their technical support for assistance, however they informed me they are not trained in the matter. I then asked if they could put me in touch with a technician who is familiar with the software, or the name or supplier of the software, so that I might contact them directly with my problem, but have not heard anything from them in over a week.
Information about the account:
-My client uses Telecom's 10GB Unix Hosting plan
Information about the cron task:
- It's a php script that searches a database for unsent mail messages, and then schedules them to be sent.
- It is meant to run every 5 minutes.
- I have confirmed the script does work as expected when you load it through a web browser.
- You can access the script through http, it is below the document root.
So, what I have done is added a command to the scheduled tasks, set the "task time" to "every five", and set the command itself to "/usr/bin/wget /usr/www/htdocs/360pm/mailscan.php >/dev/null" and have tried a few variations of this, but to no avail.
Can anybody spot what I've done wrong?
I do have a couple of suspicions:
- We don't actually have a /usr/bin/wget directory on the the account, and as it's a shared hosting service, is there a common directory that wget is accessible from on the server?
- Would the command need the absolute file path (i.e. starting from the drive letter) or is it sufficient to start it from "usr" - and is "usr" sufficient or should I put in the actual username?
Happy to provide you with additional information if needed.
Thanks in advance :)