using subshell in another xterm

view story

http://www.linuxquestions.org – Hi there guys, problem is simple, i want to run some parts of a script in different terminals. I already found about subshell, () using parenthesis to group commands and using xterm -e (function), problem is i can not get pid for the function running in the other terminal. And if I use & to set the job in background the terminal goes away as soon as it ends the job. I am using log files, and then send it them using built in mail. After all the parts finish i have to run the "main" script which needs the data from all the pieces. Also other question, i usually use bash, but to l (HowTos)