File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
69
69
- [ Clear The Screen] ( zsh/clear-the-screen.md )
70
70
- [ Killing A Frozen SSH Session] ( zsh/killing-a-frozen-ssh-session.md )
71
71
- [ Search History] ( zsh/search-history.md )
72
+ - [ Watch This Run Repeatedly] ( zsh/watch-this-run-repeatedly.md )
72
73
- [ Where Are The Binaries?] ( zsh/where-are-the-binaries.md )
73
74
74
75
## About
Original file line number Diff line number Diff line change
1
+ # Watch This Run Repeatedly
2
+
3
+ I usually reach for a quick bash for loop when I want to run a particular
4
+ process a bunch of times in a row. The ` watch ` command is another way to
5
+ run a process repeatedly.
6
+
7
+ ```
8
+ watch rspec spec/some/test.rb
9
+ ```
10
+
11
+ The default is 2 seconds in between subsequent executions of the command.
12
+ The period can be changed with the ` -n ` flag though:
13
+
14
+ ```
15
+ watch -n 2 rspec spec/some/test.rb
16
+ ```
You can’t perform that action at this time.
0 commit comments