Hi, My server doesn't support cron jobs, but I have a script that I need to run through a cron. Is there a way I can do this? I have another server that does support cron... is there a way to use that to run a file on a different server? if so what would the cron command be?
Either you run the script manually. As for using another server to run a script with cron... not sure it's possible, never tested that. Specify the url in the cron job task and see if it works.
Im using cPanel right now and I tried just setting the command to the url of the script file... But that didnt work. Is there a way that I can set up a file on the cron server that runs the script remotely? maybe? I just want to run the script regularly through cron... and I'm open to any ideas. Thanks
the script is batch updates certain parts of my site if i had the url at something like: http://www.*****.com/batch/index.php Is there a way to run a cron on it through a different server?
You can schedule a cron job on the server that you can run cron jobs on to wget a script (php or similar) on the other server .... You cron entry would look like: * * * * * wget http://www.*****.com/batch/index.php (replace the * with your date / time parameters) ...index.php on http://www.*****.com/batch/ will then run at the intervals you specify.
You can also try a free service like http://www.webcron.org/index.php?&lang=en . After you register and set it up it will access a web page according to the schedule you have specified thereby executing your script.
more easiest if you try in cpanel function there..because its default set for cron in your server if its not works, maybe you should ask your provider.. use 3rd partit will good too.