This page was exported from phaq [ http://phaq.phunsites.net ] Export date:Sat Jun 10 1:23:56 2023 / +0000 GMT ___________________________________________________ Title: Sleep Timeout on TCL (and Cisco too...) --------------------------------------------------- Being used to other languages sometime leads to false assumptions, like having the same commands every now and then. While doing some TCL scripting on a Cisco I just had the need for a 'sleep' command or equivalent. Since no 'sleep' exists, the 'after' command will do. Just supply it with the timeout in milliseconds, like this for a 10-second timeout: after 10000 Or, with a bit more overhead, but some may think it's more readable: after [expr {int(10 * 1000)}] --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2011-11-09 00:43:38 Post date GMT: 2011-11-08 23:43:38 Post modified date: 2011-11-09 00:43:38 Post modified date GMT: 2011-11-08 23:43:38 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com