tx, samtregar but "closing the filehandle" was only my first idea to open and close that pipe as i want only by clicking on the buttons.
But it dont seems so easy. I can open the pipe easy but its not possible in this way to close the process... It seems to be a much more complex process :-(