On Sat, 16 Oct 2004, benny wrote:

> 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.

basically this is saying that session never finds the end pattern in it's
output.

my reccomendation is to examine the source to find the place where the output
from bash is read.  it will be in AbstractSession as a call to gets in the
execute method.  add some code to print the line read each time (or perhaps
print to a logfile).  this should illuminate the problem and tell us why
session never sees the pattern signaling end of command - it could be some
sort of bash/buffering issue i've not seen under linux, but which exists under
bsd - i'm not sure.

if you are using session-2.1.9 look around line 328 and add something like

   @log = open("/tmp/log#{ $$ }",'w') unless @log
   @log.sync = true
   @log << line

if this does not help i'll iterject some new debuggin measures into session
   and send it to you.

thanks for helping debug this - as you can imagine this sort of error is quite
hard to debug.

-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
===============================================================================