I have a bash script mystuffcontaining a string like
lynx -dump http://example.com >tmpfile
and the script works fine, including this part, except when I run it non-interactively:
$ ./mystuff &
[1] 3712
$ jobs
[1]+ Stopped
The task is terminated. I find that a lynx is a criminal. Even running this command directly from the bash prompt will immediately terminate the job:
$ lynx -dump http:
[1] 1836
$ jobs
[1]+ Stopped
Why is Lynx not running in the background? How can i fix this?
EDIT:
I use lynx because I don't want to parse raw HTML. The difference between wgetand lynx -dumpis that lynx will display HTML; it will hide all tags, nicely place text, etc.
source
share