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.

Mysql query as a cronjob

Discussion in 'General Discussion' started by estado3, Mar 26, 2008.

  1. estado3

    estado3 Member

    Joined:
    May 12, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I would like to run a mysql query as a daily cronjob, if I am logged in as the admin, how would I do this with cpanel?
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Write a shell/bash or simple php script and execute command in it. Setup that script as a cron job.
     
Loading...

Share This Page