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.

Running scripts

Discussion in 'General Discussion' started by rimanning, Feb 8, 2008.

  1. rimanning

    rimanning Registered

    Joined:
    Feb 8, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I used the site map generator offered by Google. I've uploaded the resulting xml file and python sitemap_gen code to my root directory. I'm now supposed to run this code in order to generate the actual sitemap file. So my question is ... how do I call up a command line and do that?

    Appreciate any help,
    rimanning
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    The best way to do this is by running a cron job, which you can create from your cPanel. The command can be run via SSH as well but it would need to be done manually so it's easy to just do a cron.

    Once you have your timing set, use the command that Google gave you, in respect to where the sitemap files are located on the server:

    python /path/to/sitemap_gen.py --config=/path/to/example_config.xml
     
  3. rimanning

    rimanning Registered

    Joined:
    Feb 8, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    vanessa, that's very helpful. Thanks very much!
     
Loading...

Share This Page