why wget gets html files when supplied file is text

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
rkovvur
DD-WRT Novice


Joined: 17 Nov 2008
Posts: 15

PostPosted: Sat Nov 29, 2008 12:26    Post subject: why wget gets html files when supplied file is text Reply with quote
I am trying to install optware packages in my newly installed mmc/sd mod.

So i am using this to get the optware started.

wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh

But when i do "sh /tmp/optware-install.sh", i am getting "syntax error at line3". When i cat the install script, i found a whole bunch of html tags. But when i open that script in my firefox, it just plain text. Why is wget converting this to a html file?
Sponsor
mojso
DD-WRT User


Joined: 09 Sep 2007
Posts: 232
Location: Macedonia

PostPosted: Sat Nov 29, 2008 12:46    Post subject: Reply with quote
try sh /tmp/optware-install-ddwrt.sh


or put this file optware-install-ddwrt.sh in /opt folder and
sh /opt/optware-install-ddwrt.sh
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum