In my c-shell file, I did something like:
xterm -e "source xxxx0" &
xterm -e "source xxxx1" &
wait
code....
It works fine that code after "wait" will be executed after the two xterm finished.
But it also gives problem. If I have some ps open, like an txt file opened by geditn, or I have an eclipse open, it will hung there since "wait" is waiting for all jobs to be finished.
So how can I let "wait" only wait for those two xterm jobs.
Or in another word, I want those two "xterm" run concurrently. And after they both done, the code can be continued. How shall I do that?
Thank you very much