Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

timing service in tcl?

0 views
Skip to first unread message

Jessica Zhao

unread,
Jul 19, 1995, 3:00:00 AM7/19/95
to

Is there some kind of timing service in tcl? For example, how
should I implement a delay of 15 seconds in my script?

Thanks,

Jessica

Paul D. Boyer

unread,
Jul 20, 1995, 3:00:00 AM7/20/95
to
In article <3ui39g$1...@khipx2-gate.csl.ntt.jp>,

jes...@csl.ntt.jp (Jessica Zhao) wrote:
>
>Is there some kind of timing service in tcl? For example, how
>should I implement a delay of 15 seconds in my script?


after 1500 puts "delayed 15 seconds"

or

after 1500
puts "delayed 15 seconds"

?

J. Lawrence Stephan

unread,
Jul 21, 1995, 3:00:00 AM7/21/95
to
Jessica Zhao (jes...@csl.ntt.jp) wrote:

: Is there some kind of timing service in tcl? For example, how
: should I implement a delay of 15 seconds in my script?

: Thanks,

: Jessica

You might try expect - it adds some commands to tcl, including a sleep
command and a timestamp command (gets current time or formats a time).
Its at ftp.cme.nist.gov:/pub/expect/expect.tar.Z (or expect.tar.gz).
You need to have tcl to make it. If you have tk, it also makes an
expectk (expect for tk).

Larry

Larry Stephan "Sometimes I think the surest sign there's intelligent
jla...@ssnet.com life in space is that they haven't contacted us."
Bill Watterson - "Calvin and Hobbes"


0 new messages