From: Matt Z. <mzagrabe@d.umn.edu> - 2008-05-23 13:15:30
|
Note: Don't reply to someone else's previous message to ask a new question - it changes the way mail clients can organize threads. On Fri, 2008-05-23 at 16:18 +0530, kboragouda wrote: > Hi , > I am using Expect and IO::pty modules for ssh/rsh automation . In > multithreaded envirnoment IO::Pty module is not working. It fails > during spawning a process. But i wanted to create process (spawn) > within threads. Expect is thread safe, but IO::Tty is not, perhaps IO::Pty is not either. There has been chatter about this before [1]. [1] http://www.nabble.com/Trouble-with-Expect-working-with-Threads-td11541250.html > Please let me know any alternatives/solution for this. Don't use expect. Use a "native" thread safe perl module. Perhaps Net::Rsh or Net::SSH::Perl. Cheers, -- Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844 University of Minnesota Duluth Information Technology Systems & Services PGP key 1024D/84E22DA2 2005-11-07 Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2 He is not a fool who gives up what he cannot keep to gain what he cannot lose. -Jim Elliot |