From: Ara.T.Howard@... Date: 2004-10-15T23:34:28+09:00 Subject: Re: [Q] drb, Session::Bash & FreeBSD On Fri, 15 Oct 2004, Dick Davies wrote: >> start the session-daemon is running, accepting messages via drb, sending >> messages via drb but doesn't execute any shell commands: >> neither via >> result = `#{cmd}` >> nor via >> stdout, stderr = Session::Bash::new.execute "#{cmd}" > > Are you setting a path in the script? When you run it from your shell it inherits > all your environment, but the rc.d scripts run as root *cough* security hole *cough*.... as an aside, you can set the path of a session using session.path = '/foo/bin:/bar/bin:/foobar/bin' or session.path = %w( /foo/bin /bar/bin /foobar/bin ) or append with session.path = session.path + %w( /foo/bin /bar/bin /foobar/bin ) -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 ===============================================================================