Hi guys. I've been having a look through the docs, and also on Google; but can't seem to find an answer.
Is it possible to do something like;
wget http://www.mysite.com/index.php?get=test&group=1234 > import.txt
... where the output from that page is text.
I've done a similar thing already with LWP::Simple... but its slow as hell.. so I'm trying to work out another way :/
my @got = get($link);
print "Grabbed URL: $link , now writing...\n" if $DEBUG;
open (XMLTEST, ">$CFG->{admin_root_path}/dev/$id.xml") || die "Can't write file $CFG->{admin_root_path}/dev/$id.xml. Reason: $!";
print XMLTEST @got;
close(XMLTEST);
Anyone got any suggestions?
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Is it possible to do something like;
wget http://www.mysite.com/index.php?get=test&group=1234 > import.txt
... where the output from that page is text.
I've done a similar thing already with LWP::Simple... but its slow as hell.. so I'm trying to work out another way :/
Code:
print "Grabbing URL: $_ \n" if $DEBUG; my @got = get($link);
print "Grabbed URL: $link , now writing...\n" if $DEBUG;
open (XMLTEST, ">$CFG->{admin_root_path}/dev/$id.xml") || die "Can't write file $CFG->{admin_root_path}/dev/$id.xml. Reason: $!";
print XMLTEST @got;
close(XMLTEST);
Anyone got any suggestions?
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

