UTNAK / kepler16b-using-imce-vocabulary

Forked from a demo project for the openCAESAR platform
http://opencaesar.github.io/kepler16b-example/
0 stars 0 forks source link

Adding kill -9 $(lsof -P -i:3030) command to oml-vision tasks #15

Closed UTNAK closed 1 month ago

UTNAK commented 1 month ago

Checklist before submitting a feature request

Is your feature request related to a problem? If yes, describe the problem

It is convenient to add frequently used tasks to the oml-vision tasks.

I want to add this command.

 kill -9 $(lsof -P -i:3030) 

Describe the desired feature

You can add tasks to oml-vision GUI when you write a task in build.gradle file. One possible idea is adding this.

task killServer(type: Exec) {
    description 'Kills the process running on port 3030'

    doLast {
        // for mac
        commandLine 'sh', '-c', 'kill -9 $(lsof -t -i:3030)'
    }
}

Additional context

[Any additional context]