>> example:
>> for file in $files; do
>> #launch xterm
>> my_prog $file > to_the_new_xterm &
>> done
>> Do you have other ideas ? How can I do this ?
>xterm -e my_prog $file &
>?
I actually faced and solved a version of this recently.
The idea is that you have a process running in the current shell, and it
generates various bits of terminal output that you don't want to lose (have
vanish), but then you reach a point where a particular piece of the process
generates a lot of output such that you would ordinarily run it through
a pager. But the problem is that the pager takes over the screen and
blasts away the previous contents (*). So, what I do is (something like):
mkfifo /tmp/apipe
xterm -e less -f /tmp/apipe &
...
someprocess > /tmp/apipe
...
You might want to try something like this.
(*) Yes, I knew that some terminal types address this by having an
"alternate screen", but that doesn't always work and doesn't fully solve
the issue (when it does work).