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.

need help with chron

Discussion in 'Database Discussions' started by ClevelandSlim, Aug 4, 2007.

  1. ClevelandSlim

    ClevelandSlim Registered

    Joined:
    Jul 30, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have a script in my cgi bin. Of course, in order to get into the admin panel of the script I have to use a User:Pass combo. Once in admin, I can follow a few links to 'update' the script database. I need to setup a chron that will do this daily, so I don't have to do it.

    I have tried to put the url to this link (update button) in the browser, with the admin pass combo, and it works! How can I add this directive to chron so the chron will do this function for me daily?

    This is what worked in the browser...

    http://admin:admin@mysitewhatever.c...n/main.cgi?Run=BuildPages&Which=BuildMainPage

    Please help
    ~Slim~
     
    #1 ClevelandSlim, Aug 4, 2007
    Last edited: Aug 4, 2007
  2. gupi

    gupi Well-Known Member

    Joined:
    Apr 27, 2004
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    try
    Code:
    21 3 * * * /usr/bin/lynx http://your-url.he.re > /dev/null
    (this will update your database every morning at 3.21 o clock)
     
  3. ClevelandSlim

    ClevelandSlim Registered

    Joined:
    Jul 30, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    What about the user/pass combo that the script admin requires? admin:admin
     
  4. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    /usr/bin/wget -b -o /dev/null "http://user:password@host/path"
     
  5. ClevelandSlim

    ClevelandSlim Registered

    Joined:
    Jul 30, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    None of these have worked!
     
Loading...

Share This Page