From: Ara.T.Howard@... Date: 2004-10-16T08:34:29+09:00 Subject: Re: [Q] drb, Session::Bash & FreeBSD On Sat, 16 Oct 2004, benny wrote: > it ran as root in both cases, so the permissions should make no difference. > I did set the path explicit now > > session = Session::Bash::new > session.path = > '/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin' > stdout, stderr = session.execute "#{cmd}" try this debuglog = open "/tmp/debuglog.#{ $$ }", 'w' debuglog.sync = true stdout, stderr = session.execute("#{ cmd }") do |o,e| debuglog << (o || e) end then do a tail -f of the debuglog as it's being produced. perhaps this will help tell you if the cmd has gone into an infinite loop... if that's the case i can't really help. if it is not the case and your cmd completes you've found a bug in the session lib. > inheritence of paths to subshells, can I control that or is it done > automatically? automatic. > I sent it to you directly via email. got it. -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | When you do something, you should burn yourself completely, like a good | bonfire, leaving no trace of yourself. --Shunryu Suzuki ===============================================================================