Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Ok last Dmoz question

Quote Reply
Ok last Dmoz question
Hi all

Ok i installed wget got the rdf file from dmoz, unzipped it and ran nph-import.cgi this is where the problem is:

I would like to install all data everything, i am just testing the system and many catagries will be deleted later however for now i would like to import the whole thing.

So can anyone give me the line i should use via telnet to import it all please. (just to let you know i know how to call the script up to import i just need the code to have nph-import import all)

Thanks in advance

Kirk


--------------------------------------------------

Life isn't like a box of chocolates ... it's more like a jar of jalapenos. What you do today might burn your ass tomorrow.
Quote Reply
Re: [mekro] Ok last Dmoz question In reply to
Many examples are available, you should find some here:

http://www.gossamer-threads.com/..._username=&mh=50
Quote Reply
Re: [mekro] Ok last Dmoz question In reply to
For the whole database I would use;

perl /home/public_html/dump/cgi/admin/nph-import.cgi --import=RDF --source=/home/small_dumps/content.rdf.u8 --destination=/home/public_html/dump/cgi/admin/defs --rdf-category="Top/" --rdf-add-date="2001-01-01"

That should do what you want. Obviously just set it to run via cron (I would set a NICE on the cron job, otherwise it will overtake your server...I found this out the hard way today Frown).

Hope that helps Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [RedRum] Ok last Dmoz question In reply to
Hi RedRum,

Looks like u discover a 'bug' in the forum? With that long url u maked my screen scroll from left to right:)....

Maybe Alex can fix this?

regards startpoint.
Quote Reply
Re: [startpoint] Ok last Dmoz question In reply to
Its not a bug Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Ok last Dmoz question In reply to
Hi Andy

Thanks for the code it workd brilliantly, however i do have one more question and that is how would i set it up via cron as cron has a problem with the code as there are spaces in between it.

Any help would be appricated

Kirk


--------------------------------------------------

Life isn't like a box of chocolates ... it's more like a jar of jalapenos. What you do today might burn your ass tomorrow.