Jump to content


Photo

Command Line For Google Sitemap


  • Please log in to reply
15 replies to this topic

#1 mdedens

mdedens

    Family Friend

  • Members
  • PipPip
  • 80 posts

Posted 03 June 2005 - 05:45 PM

Hi

Google released a SiteMap Generator built in Python. But they don't say how to connect to your server to run the script. I uploaded it to my public html folder. But I have no idea how to connect to the server via Command Line to execute the script. Any ideas how to do this?

Here's a link to the Google page:

google.com/webmasters/sitemaps/docs/en/sitemap-generator.html

-Mike

#2 TweezerMan

TweezerMan

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,763 posts

Posted 03 June 2005 - 06:08 PM

"Connecting to the server via command line" is what's known as a shell, and shell access is not allowed on TCH servers.

You'd need to follow the next suggestion ("Setting up a recurring script") by setting up the script to run as a cron job.
David Phillips (TweezerMan)
The Tweezer's Edge v3

#3 mdedens

mdedens

    Family Friend

  • Members
  • PipPip
  • 80 posts

Posted 03 June 2005 - 06:18 PM

Ok, thanks for the tip!

#4 mdedens

mdedens

    Family Friend

  • Members
  • PipPip
  • 80 posts

Posted 03 June 2005 - 10:51 PM

Sorry, had 1 more question. I think I get how to setup a cron job in the cpanel. But is there a special directory I need to put the Python script in? Like python or cron dir? Or just my public html folder?

Thanks for any advice.


Mike

Edit

Here is the command I am supposed to run, if it helps. And I think I'm supposed to replace "path" with the root path to config.xml

$ python sitemap_gen.py --config=/path/config.xml

Edited by mdedens, 03 June 2005 - 11:01 PM.


#5 TweezerMan

TweezerMan

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,763 posts

Posted 04 June 2005 - 12:26 AM

I don't believe it matters what directory you put the python script in. You could put in your /public_html directory, or even a subdirectory of /public_html.

Here is the command I am supposed to run, if it helps. And I think I'm supposed to replace "path" with the root path to config.xml

$ python sitemap_gen.py --config=/path/config.xml

Yes, you need to use an absolute file path to the config.xml file, as well as to the sitemap_gen.py file. Your cron command should look something like this:
python /home/cpanelName/public_html/sitemap_gen.py --config=/home/cpanelName/public_html/config.xml
...assuming config.xml and sitemap_gen.py are in your /public_html directory. Replace 'cpanelName' with your actual CPanel username.

Hope this helps...
David Phillips (TweezerMan)
The Tweezer's Edge v3

#6 ThatAdamGuy

ThatAdamGuy

    Family Friend

  • Members
  • PipPip
  • 52 posts

Posted 04 June 2005 - 04:52 PM

I'm interested in participating in the new Google sitemap project, and using their Site Map Generator.

Would it be possible to run this python script via cPanel?

#7 ThatAdamGuy

ThatAdamGuy

    Family Friend

  • Members
  • PipPip
  • 52 posts

Posted 04 June 2005 - 05:25 PM

Ah, nevermind... (my topic was merged)... and I should have noticed the earlier query and responses. Thanks, David, for the informative replies!

#8 mdedens

mdedens

    Family Friend

  • Members
  • PipPip
  • 80 posts

Posted 04 June 2005 - 11:47 PM

Thanks David it works!

#9 ohpul

ohpul
  • Members
  • 2 posts

Posted 06 July 2005 - 06:19 PM

I'm sorry, but I am a little bit less savvy with programming. How can I set up a cron job in CPanel?

#10 ohpul

ohpul
  • Members
  • 2 posts

Posted 06 July 2005 - 06:26 PM

Ah, nevermind. Setting up a cron job through cPanel is the easiest thing. It's late and the A/C in my office is broken... Thanks for reading.

#11 TCH-Rob

TCH-Rob

    Help Desk Manager

  • Members
  • PipPipPipPip
  • 7,797 posts

Posted 06 July 2005 - 06:35 PM

Lol,

Glad you got it sorted out ohpul and welcome to the forums.

#12 TweezerMan

TweezerMan

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,763 posts

Posted 06 July 2005 - 06:59 PM

Welcome to the forums, ohpul! :surrender:
David Phillips (TweezerMan)
The Tweezer's Edge v3

#13 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 19,960 posts

Posted 06 July 2005 - 07:49 PM

Welcome to the forums, ohpul! :surrender:

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#14 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 06 July 2005 - 09:23 PM

Welcome to the forums, ohpul :D

#15 TCH-Andy

TCH-Andy

    Immediate Family

  • Members
  • PipPipPipPip
  • 4,699 posts

Posted 07 July 2005 - 12:35 AM

welcome to the forums :D
Andy Beckett
-----------------
Part of the TCH family since the beginnings of time.

#16 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 14,908 posts

Posted 07 July 2005 - 02:37 AM

Welcome to the forum, ohpul. :D

Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users