Claus Ibsen created FORGE-2167:
----------------------------------
Summary: Watch command - To keep running a command with X interval
Key: FORGE-2167
URL:
https://issues.jboss.org/browse/FORGE-2167
Project: Forge
Issue Type: Feature Request
Affects Versions: 2.12.3.Final
Reporter: Claus Ibsen
Priority: Minor
It would be great if forge has a watch command out of the box, you can use to keep running
another command.
The use case is to run a command that maybe display some runtime data or something. And
then you want that to be displayed in real time.
We have this command in Apache Karaf. Here is the options it provides which can be of
inspiration
{code}
karaf@root> watch --help
DESCRIPTION
shell:watch
Watches & refreshes the output of a command
SYNTAX
shell:watch [options] command
ARGUMENTS
command
The command to watch / refresh
OPTIONS
-a, --append
The output should be appended but not clear the console
--help
Display this help message
-n, --interval
The interval between executions of the command in seconds
(defaults to 1)
{code}
The trick is that the console should be cleared.
Use cases can also be for watching your servers where you have a plugin that has some
commands to gather details. Then you can use watch to update the data in real time.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)