Hi, From: "MiG" <mig / 1984.cz> > > I've tried just this :-) > > But there is still problem that $stdout is global variable and > pust/print/etc in load method use just these global variables. > > I don't know how to populate my wrapper object to load method and > separate buffers between threads at once. Sorry if I've misunderstood your current approach. It sounds like you are using 'load' and separate threads to run the scriptlets? Since you're on Unix, would fork be easier? Once you fork, the global redirection of $stdin/$stdout should be OK in the child process. Your parent process (server) could be a small loop that receives requests, forks children to handle them, and pipes the results from the child back to whoever originated the request? Just a thought - sorry if I've misunderstood what you're doing . . . Regards, Bill