Giter Club home page Giter Club logo

jbang-catalog's Introduction

Byteman jbang catalog

This catalog enables using byteman via jbang.dev.

The usecase for jbang with byteman is that you do not need to download/install byteman manually. Useful if exploring things on a new/remote system or in a container.

Run applications with Jbang and Byteman

To run a jar, maven artifact or jbang script with Byteman as agent:

jbang --javaagent byteman@bytemanproject your.jar
jbang --javaagent byteman@bytemanproject org.group:artifact:version
jbang --javaagent byteman@bytemanproject alias@catalog

To load scripts use the normal byteman flags:

jbang --javaagent byteman@bytemanproject:script=myfile.btm your.jar

Using JBang 0.104 or newer you can even load remote files:

jbang --javaagent byteman@bytemanproject:script=%{https://url/to/myfile.btm} your.jar

If you need to add byteman or other jars to boot classpath you can use this trick:

 jbang --javaagent=byteman@bytemanproject=boot:`jbang info classpath byteman@bytemanproject` your.jar

Combining it all you can do this:

 jbang --javaagent=byteman@bytemanproject=boot:`jbang info classpath byteman@bytemanproject`,script:%{https://github.com/bytemanproject/byteman/raw/main/sample/scripts/FileMonitor.btm} jarviz@kordamp

This runs jarviz@kordamp loads the byteman@bytemanproject as a javaagent, adds the necessary classpath to boot path and remotely fetches the FileMonitor.btm available in Byteman main repo.

All without requiring to install or setup byteman nor java.

Install Byteman remotely

To install Byteman on a remote system you can use the bminstall command:

jbang bminstall@bytemanproject -b <pid>

Submit Byteman scripts remotely

To submit Byteman scripts to a remote system you can use the bmsubmit command:

jbang bmsubmit@bytemanproject myfile.btm

Check Byteman scripts

To check your Byteman scripts you can use the bmcheck command:

jbang bmcheck@bytemanproject myfile.btm

jbang-catalog's People

Contributors

maxandersen avatar

Watchers

Andrew Dinn avatar James Livingston avatar James Cloos avatar chalda avatar

Forkers

maxandersen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.