Just call wget http://www.somedomain.com on the console to see if it is available... Depends on your distro where it is installed and how to install it... I have mine in /usr/bin/wget
Alternatively, use lynx or curl as command, e.g.
curl --silent 'http://181.163.64.228:8983/solr/db/dataimport?command=delta-import'

Cheers,
Stefan

Am 22.12.2010 12:46, schrieb Ruixiang Zhang:
Thanks for your quick reply. I couldn't find the wget on my server. Do you know where it should be located or how I can check if I have it on my server? If not, can I install one?

Thanks

On Wed, Dec 22, 2010 at 3:38 AM, Stefan Moises <moi...@shoptimax.de <mailto:moi...@shoptimax.de>> wrote:

    Hi,

    you can use wget if available on your server, e.g. command
    wget --quiet
    'http://181.163.64.228:8983/solr/db/dataimport?command=delta-import'

    Cheers,
    Stefan

    Am 22.12.2010 12:31, schrieb Ruixiang Zhang:

        I want to run delta-import in Crontab but don't know how.

        I used php file in Crontab before, like:

        command: php /home/user/public_html/auto.php

        I tried:

        command:
        
/home/user/public_html/solr/apache-solr-1.4.1/example/example-DIH/solr/db/dataimport?command=delta-import

        It didn't work.

        The url I run in browser is:

        http://181.163.64.228:8983/solr/db/dataimport?command=delta-import

        Thanks
        Richard


-- *******************************************
    Stefan Moises
    Senior Softwareentwickler

    shoptimax GmbH
    Guntherstraße 45 a
    90461 Nürnberg
    Amtsgericht Nürnberg HRB 21703
    GF Friedrich Schreieck

    Tel.: 0911/25566-25
    Fax:  0911/25566-29
    moi...@shoptimax.de <mailto:moi...@shoptimax.de>
    http://www.shoptimax.de
    *******************************************




--
*******************************************
Stefan Moises
Senior Softwareentwickler

shoptimax GmbH
Guntherstraße 45 a
90461 Nürnberg
Amtsgericht Nürnberg HRB 21703
GF Friedrich Schreieck

Tel.: 0911/25566-25
Fax:  0911/25566-29
moi...@shoptimax.de
http://www.shoptimax.de
*******************************************

Reply via email to