Why doesn't this work?:
wget -q -U Mozilla "http://rss.slashdot.org/Slashdot/slashdot" -O - | tr '\n' ' '
p.s.: and under openwrt 10.03:
# wget "http://slashdot.org/" -O -
Connecting to slashdot.org (22.214.171.124:80)
wget: bad header line: slash_LOG_DATA: shtml
wget "http://slashdot.org/" -O -
Furthermore, I would suspect that site to act weird as they are using old standards...
This still happens and isn't a fault or bug. The wget command will create a file - whether you download something or not. So the second time you issue the same command the file is already there.
This happens for instance when you use wget in a BeagleBone to pass weather info to your website for logging purposes:
*NOTE: (Filename starts with first letter after the last "/" and ends with last letter or first blank)
This will run OK the first time but the second time it will produce named error because
What you could do is (re)direct the dummy file to dummy output ;-)
So the proper command in this case would be: