$ bminstall.sh -h
输出示例:
usage: bminstall.sh [options] [process args]
options:
-p, --process installation process name pattern (default all)
-a, --address Byteman agent bind address (default 127.0.0.1)
-b, --boot add jar to boot classpath rather than system classpath
-d, --dynamic add jar to system classpath under a temporary directory
-P, --property add system property to the target JVM
-V, --verbose enable verbose message logging
-h, --help display help
$ bminstall.sh -Dorg.jboss.byteman.verbose=true /path/to/myapp.jar "org.example.MyApp main" /path/to/myrule.btm
理论上,您应该能够在控制台上看到'HELLO WORLD!”这条消息。