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 forum administrators only ]

Re: error when I runcrawl from command line
« Reply #1 on: January 12, 2010, 08:13:07 PM »

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