Web Hosting Talk







View Full Version : Cronjob in cpanel


bgempire
06-01-2003, 12:59 AM
I am trying to setup a cron job for NetStatus server monitoring script.

You can see the netstatus here:

http://www.hostpit.com/netstatus

The script I need to run is located here:

http://www.hostpit.com/netstatus/cr...cron_script.php

I tried setting up cronjobs in Cpanel with first this command:

/netstatus/cron_script/cron_script.php

and then:

/home/host/netstatus/cron_script/cron_script.php

where "host" is the user name for my website.

But when the cronjob runs I get the following error:

/bin/sh: /home/host/netstatus/cron_script/cron_script.php: No such file or directory

Any ideas on how I can get this to work?

Manually running the script works fine.

bgempire
06-01-2003, 01:43 AM
Nevermind

Used the GET function and its fine now.