Gossamer Forum
Home : General : Internet Technologies :

wget - output file?

Quote Reply
wget - output file?
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 :/

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? Smile

TIA

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!
Subject Author Views Date
Thread wget - output file? Andy 23910 Jul 24, 2004, 3:04 AM
Post Re: [Andy] wget - output file?
Andy 23712 Jul 24, 2004, 3:12 AM
Thread Re: [Andy] wget - output file?
Alex 23684 Jul 29, 2004, 5:37 PM
Thread Re: [Alex] wget - output file?
Andy 23694 Jul 30, 2004, 12:36 AM
Post Re: [Andy] wget - output file?
Andy 23615 Sep 14, 2004, 5:22 AM