run code program on terminal every x time (seconds)
In order to run any command or program every X seconds or any time from your Mac terminal, you can utilize a shell loop with the sleep command.
OneBite.Dev - Coding blog in a bite size
In order to run any command or program every X seconds or any time from your Mac terminal, you can utilize a shell loop with the sleep command.
If you print or log bunch of data in Terminal (Iterm) normally, you can't scroll back to your latest command. Here is how to do it