[forge-issues] [JBoss JIRA] (FORGE-2167) Watch command - To keep running a command with X interval

George Gastaldi (JIRA) issues at jboss.org
Tue Dec 16 08:26:30 EST 2014


     [ https://issues.jboss.org/browse/FORGE-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi updated FORGE-2167:
-----------------------------------
    Fix Version/s: 2.x Future


> 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
>             Fix For: 2.x Future
>
>
> 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 at 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)


More information about the forge-issues mailing list