XML Sitemaps Generator

Author Topic: error when I runcrawl from command line  (Read 9486 times)

waypoint

  • Registered Customer
  • Approved member
  • *
  • Posts: 1
error when I runcrawl from command line
« on: January 12, 2010, 04:10:35 PM »
I am setting up a cronjob to crawl my site, but wanted to test the script from a command line prior to setting it up.

Here is the error I get.

/var/www/tare/htdocs/sitemap_generator/runcrawl.php: line 1: ?php: No such file or directory

/var/www/tare/htdocs/sitemap_generator/runcrawl.php: line 2: syntax error near unexpected token `base64_decode'

/var/www/tare/htdocs/sitemap_generator/runcrawl.php: line 2: `eval(base64_decode('Pz48P3BocAokb3AgPSAkX1JFUVVFU1RbJ29wJ10gPSAnY3Jhd2xwcm9jJzsKaWYoaXNzZXQoJF9TRVJWRVJbJ1JFUVVFU1RfTUVUSE9EJ10pKQp7CmVjaG8gJ1RoaXMgdG9vbCBjYW4gYmUgZXhlY3V0ZWQgaW4gY29tbWFuZCBsaW5lIG1vZGUgb25seSc7CmV4aXQ7Cn0KJGRWXzBqVXpMTDhlT0MydnJ0QW4gPSB0cnVlOwpjaGRpcihkaXJuYW1lKF9fRklMRV9fKSk7CiRfUkVRVUVTVFsnYmcnXSA9IHRydWU7CiRfUkVRVUVTVFsncmVzdW1lJ10gPSB0cnVlOwppbmNsdWRlICcuL2luZGV4LnBocCc7Cj8+'));'

Any help would be greatly appreciated.

Regards, Tom Ashworth
[external links are visible to admins only]


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: error when I runcrawl from command line
« Reply #1 on: January 12, 2010, 08:13:07 PM »
Hello,

make sure that you put the php interpreter path (separated by space character) before the runcrawl.php path, i.e.:

Code: [Select]
/usr/bin/php /var/www/tare/htdocs/sitemap_generator/runcrawl.php
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2