This isn't possible directly, however you can use the mysql outfile command
to

On Tue, Jan 22, 2013 at 6:12 PM, Lewis John Mcgibbney <
[email protected]> wrote:

> This has certainly been explained in the past, however I can't find the
> archived thread.
> In short currently it is not possible.
> I think it would be a nice feature for the injector though.
>
> On Tuesday, January 22, 2013, 刘兆贵 <[email protected]> wrote:
> > Dear,
> > I have a question, could you kind help me? Is there a way that I can
> inject urls from a MySQL database rather than a text file.  Thanks a lot!
>
> --
> *Lewis*
>

You can accomplish this with a bash script, something like this:

#! /bin/bash
mysql SELECT my_url_field FROM my_url_table INTO OUTFILE
'/tmp/urls_to_inject/inject.txt'
/path/to/nutch inject /path/to/crawl/crawldb /tmp/urls_to_inject
exit 0

Reply via email to