Read again the first paragraph of my previous post.
More generally, the following command line makes no sense:
$ command1 > file | command2 file
You want:
$ command | command2 -
Or, if you want to save the partial results (the output of 'command1', not
post-processed by 'command2'):
$ command | tee file | command2 -
In both cases, "-" means "standard input" and can be omitted if, by default,
'command2' processes the standard input (not the case as an argument of
option -iL of 'nmap': the argument is mandatory).