From: benny Date: 2004-10-16T09:14:29+09:00 Subject: Re: [Q] drb, Session::Bash & FreeBSD Ara.T.Howard@noaa.gov wrote: > 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. the logfile is created and filled correctly with the output of the script. it tells that it has finished, so that might be a bug in the session lib. BTW with result = `PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin; export PATH; #{cmd}` I got my script running from the autostarting up. but I would like to use the Session Module anyway (at least because of the fetching of stderr). greetings, benny