This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

using wget to download scripts from here

Website and forum-related announcements and discussion, and anything else that doesn't fit in the above forums.
Post Reply
y
yelow79
Voice
Posts: 10
Joined: Wed Jun 22, 2011 7:53 am

using wget to download scripts from here

Post by yelow79 »

I am having trouble using wget to download the scripts offered here. here is an example of how I have been using wget
Radio@V-1460:~/scripts$ wget --trust-server-names http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1429
[1] 10136
Radio@V-1460:~/scripts$ --2011-06-22 10:45:43-- http://www.egghelp.org/cgi-bin/tcl_arch ... e=download
Resolving www.egghelp.org... 199.187.125.67
Connecting to www.egghelp.org|199.187.125.67|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.egghelp.org/tclhtml/3478-4-0-0-1.htm [following]
--2011-06-22 10:45:43-- http://www.egghelp.org/tclhtml/3478-4-0-0-1.htm
Reusing existing connection to www.egghelp.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `3478-4-0-0-1.htm'

[ <=> ] 29,716 --.-K/s in 0.07s

2011-06-22 10:45:44 (390 KB/s) - `3478-4-0-0-1.htm' saved [29716]
Now obviously that is not what I was wanting to download. I have also tried just using wget with that url and that didn't produce any better results.

The file I am trying to download is shoutcast.tar.gz it is a shoutcast advert script written by Sm0ke0ut, found on this page http://www.egghelp.org/tclhtml/3478-4-0 ... utcast.htm

Thank you in advance for any and all help
yelow79
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

It's not a problem with the egghelp.org site, but with your command line.
Your shell treats the ampersand (&) in the url as the "run-in-background" operator, thus the URL-parameter wget sees is actually http://www.egghelp.org/cgi-bin/tcl_arch ... e=download - not http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1429

The fix is to wrap the parameter with '', which prevents bash/ash/csh/etc from interpreting anything within the string (analoguous to {} in tcl)

Code: Select all

nml375@linux:~$ wget --trust-server-names 'http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1429'
NML_375
y
yelow79
Voice
Posts: 10
Joined: Wed Jun 22, 2011 7:53 am

Post by yelow79 »

I'm sorry if I came across as if I thought there was anything wrong with the site. I knew that the error was something that I didn't know about the wget command. I searched (google is my best friend and biggest helper) and read the help but found nothing mentioning what you just said. Thank you very much.
Post Reply