I’m trying to run multiple commands in Windows cmd. And need to sleep for ~4 seconds between the commands.
I copy my commands block to the cmd and then want them to run one after the other with breaks of 4 seconds.
My problem is that the timeout command stops the execution and not continue to the next commands:
python3 my_file.py -a
timeout /t 4 /nobreak > nul
python3 my_file.py -b
timeout /t 4 /nobreak > nul
python3 my_file.py -c
The first and the second lines are running and then it ends and shows the >
sign.
(I did the same thing in Linux with the ‘sleep’ command ant it works perfect)
I also tried different options of the timeout command such as timeout /t 4
and timeout 4
but nothing works…
How can I do it? it must run on Windows cmd and not as batch file.
Thanks