// Open Source · Apache 2.0
beanshell-tools
A collection of ready-to-use BeanShell scripts for OS automation. Pure BeanShell 2.1.1 + standard JDK, no external dependencies.
BeanShell 2.1.1
Java 8+
Cross-platform
Zero dependencies
// Requirements
What you need
// runtime
Java 8 or higher
// interpreter
BeanShell 2.1.1
// dependencies
None
// Installation
Installing BeanShell
01
Download the JAR
Get bsh-2.1.1.jar from the BeanShell releases page.
02
Add it to your classpath
Windows
set CLASSPATH=%CLASSPATH%;C:\path\to\bsh-2.1.1.jar
Linux / macOS
export CLASSPATH=$CLASSPATH:/path/to/bsh-2.1.1.jar
// Usage
Running the scripts
Interactive menu
Launch the interactive menu to browse and run all available tools.
java bsh.Interpreter menu.bsh
Direct execution
Run any script directly by passing its arguments inline.
java bsh.Interpreter files/copy_file.bsh "source.txt" "dest.txt"
// Scripts
Available tools
// files/
- copy_file.bsh
- delete_file.bsh
- rename_file.bsh
- list_files.bsh
- analyze_file.bsh
// network/
- ping_host.bsh
- view_file.bsh
- check_port.bsh
// system/
- env_vars.bsh
- os_info.bsh
- list_processes.bsh
// zip/
- create_zip.bsh
- extract_zip.bsh
- show_zip.bsh