Mmm..this is really odd. I have made a script to verify that the category Top/Regional/North_America/United_States/Pennsylvania exists (see below)....but for some reason, when using the SSH command, it doesn't like finding it anbd adding it to Links SQL :( I'm pretty sure the commad is right, as I was using it to import some of the other categories not long ago. If anyone could help, it would be much appreciated. I've spent the whole of today, and last weekend trying to get this to work
The script I'm using o verify the category still exists in the dump file is;
use CGI::Carp qw(fatalsToBrowser);
open(DMOZ, "content.rdf.u8") || die "uinable to open file...reason: $!";
while (<DMOZ>) {
if ($_ =~ /Top\/Regional\/North_America\/United_States\/Pennsylvania/) {
print "Content-type: text/html \n\n";
print "Found it! <BR> <font color=red>$_</font>";
}
}
close(DMOZ);
And the command I am entering in SSH to get it to import is;
perl /home/dumps/public_html/links_sql/admin/nph-import.cgi --import=RDF --source=/home/dumps/public_html/regional.dump.slice --destination=/home/dumps/public_html/links_sql/admin/defs --rdf-category="Top/Regional/North_America/United_States/Pennsylvania" --rdf-add-date="2001-01-01" --rdf-destination="Pennsylvania" --rdf-update
Any ideas are appreciated..I just can't see where I'm going wrong :(
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!
The script I'm using o verify the category still exists in the dump file is;
Code:
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser);
open(DMOZ, "content.rdf.u8") || die "uinable to open file...reason: $!";
while (<DMOZ>) {
if ($_ =~ /Top\/Regional\/North_America\/United_States\/Pennsylvania/) {
print "Content-type: text/html \n\n";
print "Found it! <BR> <font color=red>$_</font>";
}
}
close(DMOZ);
And the command I am entering in SSH to get it to import is;
perl /home/dumps/public_html/links_sql/admin/nph-import.cgi --import=RDF --source=/home/dumps/public_html/regional.dump.slice --destination=/home/dumps/public_html/links_sql/admin/defs --rdf-category="Top/Regional/North_America/United_States/Pennsylvania" --rdf-add-date="2001-01-01" --rdf-destination="Pennsylvania" --rdf-update
Any ideas are appreciated..I just can't see where I'm going wrong :(
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!