05-25-2021 11:54 AM
using XMC execute CLI commands …
searching for a command which makes a pause between 2 commands like:
show port X error no-refresh
pause 10
show port X error no-refresh
(sleep X or time.sleep X from XMC scripting does not work!)
Any ideas ?
Solved! Go to Solution.
05-26-2021 05:31 AM
Hello Matthias,
you can't switch to TCL in CLI Command, that's correct. As far as I know CLI Command is a plain command input option without an intepreter, therefore you have to switch to task an TCL.
But as I wrote in difference to python no further code is necessary (only three lines from your example) therefore the code part is not realy complexe only the menus to start a script and select an name and usergroup is more complexe.
05-25-2021 12:02 PM
Hi Matthias, the set var wait command will just take 10 seconds (10000 msec) and then XMC sees the prompt and continues.
I think it will work as long as the wait is not longer than XMC has defined its timeout.
If you need more sophisticated tasks in XMC use a python script instead of the command CLI script.
05-25-2021 11:59 AM
Hi Oskar,
that’s a good idea but only works with EXOS.
I am looking for a pause command within XMC cli task.
BR,
Matthias
05-25-2021 11:57 AM
enable cli scripting
show port x error no-refresh
set var wait $TCL(after 10000)
show port x error no-refresh
Did not test it with XMC but it is working on EXOS.