Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using 'watch' as Quick Continuous Integration

DZone's Guide to

Using 'watch' as Quick Continuous Integration

· Java Zone
Free Resource

Try Okta to add social login, MFA, and OpenID Connect support to your Java app in minutes. Create a free developer account today and never build auth again.

Here’s a quick tip for anyone writing a script without a REPL: use watch as a quick continuous integration tool.

While writing code in one console, execute the following watch command in another:

watch -d -n 5 "command"

I used this trick while pair-programming an Io implementation of Gnome Sort during my last reading group meeting. My other half thought it was a clever trick and shared it with the group. Then our group leader said I should blog about it. Done!

Build and launch faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

Published at DZone with permission of Mike Christianson, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}