I am using EEM to trigger the following commands on a set event:
action 1 cli command "enable"
action 2 cli command "tclsh flash:mytcl.tcl"
In my tcl script I am using the command 'after' to sleep for a specific time.
What I notice is that the script doesn't work consistently. Say I want to wait for 10 iterations and in each iteration sleep, sometimes it only does the first iteration, sometimes 2 and sometime 3 (3 was the max I got).
When I run the script via cli
It works fine every time.
When I removed the 'after' command it completed the iterations fine.