is there a way to do
vwait forever
in tclsh?
i get the following error:
can't wait for variable "forever": would wait forever
but i really need to wait forever. and i can't use wish
because i'm rsh the script and DISPLAY env doesn't get set therefore
wish won't work. I'm on UNIX.
thanks in advance,
c.w.
What version of tcl are you running?
Jeff
"Chia-Wei Chow" <ch...@sim.ssd.bna.boeing.com> wrote in message
news:394AD5B6...@sim.ssd.bna.boeing.com...
You don't really want to wait *forever*. You want to wait until the next
event happens, do that event, then wait some more. This is telling you that
you have no source of events. I.e., you have no outstanding [after] or
[fileevent] things set up.
--
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST). Cryptokeys on demand.
"You know Lewis and Clark?" "You mean Superman?"
i actually do. because the way existing software is, there's really no
next
event except to keep this process alive. i suppose i could use an
infinite
loop to do that too.
thanks,
c.w.
thanks for responding/helping.
i am using TclPro's 1.2 (protclsh80) which is
% puts $tcl_patchLevel
8.0.5
you said yours worked. what version are you using?
thanks,
c.w.
> i actually do. because the way existing software is, there's really no
> next
> event except to keep this process alive.
That's what the error message means.
> i suppose i could use an
> infinite
> loop to do that too.
Why do you want to keep the process alive if it's never going to wake up
again? I suspect there's a fundamental design flaw. If the process is never
going to do anything else in its lifetime, why is it running?
Jeff Godfrey verified that
vwait forever
works on NT95 8.2.2
is this a bug for unix?
c.w.
What sort of 'connection' do you have ? If it is a socket then just register
a fileevent, if it is something else then register a timer to trigger in
a few months time.
proc poll-every-month {} {
after 30*24*60*60*100 poll-every-month
}
> Jeff Godfrey verified that
> vwait forever
> works on NT95 8.2.2
> is this a bug for unix?
>
No, it's a bug in the NT implementation.