[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Lynx doesn't dump to stdout?



Hi Matthijs,
 
> Example:
> lynx -dump
> http://www.ticketmaster.nl/html/searchResult.htmI?keyword=carlton&l=NL
> | grep resultaten
> 

There is a rather annoying thing happening here. Remember that commands
in bash ending with an ampersand sign & are executed in the background
(i.e. the command is executed and you get your prompt back rather than
having to wait). 

This is what's happening here. If you look carefully to the output, you
might notice there is something like '[1] 4822' at the beginning of the
suspected output, this means your job (lynx) is ran in the background
with PID 4822.

No need to understand all the above - If you change the '&' in the
webpage address to '\&', it's working:

-bash-2.05b$ lynx -dump
http://www.ticketmaster.nl/html/searchResult.htmI?keyword=carlto\&l=NL |
grep resultaten
         Wij hebben geen resultaten voor carlto kunnen vinden.
       Als u desondanks geen resultaten krijgt, kan het zijn dat het
   Als  u  meer  resultaten wenst, vergroot dan uw selectie tot 31
dagen.
   Als u minder resultaten wenst, kies dan voor minder dagen.



Ciao
Dan



Reply to: