Skip to content

watch: Added the --nokeypr and --okexit options.

Stuart Blake Tener requested to merge stuartbh/procps:master into master

This merge request adds two features to the code:

  1. "--nokeypr" that avoids having to press enter in certain cases on exit
  2. "--okexit" that allows for you to presume a watched command will continue to error out and to only exit when it has zero error code. Such an example would be "ping -c1 wwww.someserver.com". As you'd perhaps be desirous of the ping continuing to execute until it succeeds and issues a zero error code.

If you want to reject this code because you wish me to add further documentation to the code, let me know and I can do that (just realizing now may it is a little deficient). But, do let me know if rejection is purely based on documentation or if you do not wish to have this functionality added to the base code for some reason (I cannot for the life of me wonder why you would not want to add it).

Stuart B. Tener, BSCS, N3GWG

Merge request reports