Stephen, Thanks, that worked. The -command was executed logging 'okay' + number of bytes written.
But the ns_log statements following vwait are not executed. I assume that is expected? I posted the updated script at: http://rmadilo.com/files/nsbgwrite/nsbgwrite.tcl tom jackson On Tuesday 02 October 2007 18:23, Stephen Deasey wrote: > On 10/3/07, Tom Jackson <[EMAIL PROTECTED]> wrote: > > Anyway, I don't really know if this will work as the original, I was able > > to fcopy in background a short text file, but larger than 4096 bytes just > > gets that amount according to wget. > > > > In foreground/blocking mode, fcopy returns larger files. > > > > I've included my test script as well: > > > > http://rmadilo.com/files/nsbgwrite/nsbgwrite.tcl > > By using the -command option to fcopy you've enabled background mode, > but I don't see a call to vwait. You're not entering the event loop. > > 4096 happens to be the default buffer size of a Tcl channel. > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the > email message. You can leave the Subject: field of your email blank. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.