The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron running remote script

Discussion in 'General Discussion' started by Sponge, Mar 5, 2012.

  1. Sponge

    Sponge Registered

    Joined:
    Mar 5, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi I have a web host not allowing a php script to run on there server as it has to execute a file (The Script is a ventrilo voice chat server stats checker)

    I have setup a basic web host from my home computer that is on 24/7 to run this script but now trying to get cpanel cron to run this remote script every 15 minutes.

    Can anyone give me a hand is it possible to execute a remote script like this ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Is there a specific reason you would want the cron job configured on the cPanel server? You could simply setup the cron job on the remote server. Otherwise, you could configure the cron job to access the script using a command such as:

    Code:
    lynx -dump http://www.example.com/run-cron.php
    Thank you.
     
Loading...

Share This Page