The pipeline (|
) used in your code is wrong for sure, change it with &&
could possible solve your problem.
- As the
wget
didn't output the retrieve webpage tostdout
, so you piped nothing into tagsoup. - Although you also specified input file and output file for jsoup, you used pipeline. so at the time
java-jar
starts to execute,wget
is still running. The input file you specified for tagsoup isn't ready yet.
So you need wget
quit with 0
exit status first before jsoup start, &&
here will serve this purpose.