Skip to content

A collection of helpful and easy to install bash scripts for the IBM i.

Notifications You must be signed in to change notification settings

jbh/ibmi-bash-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

IBM i BASH Tools

A collection of helpful and easy to install bash scripts for the IBM i.

Setup

To setup these bash scripts and use them, just use the provided setup file at the root of this project.

cd /path/to/ibmi-bash-tools
./setup <optional-path>

The setup script accepts an option path to symlink the scripts. It will try to place the scripts in ~/bin by default. Symlinking them allows them to be updated anytime the files in this project are updated. Wherever they end up being symlinked, make sure that directory is in the user's PATH BASH environment variable. This can be done like so in a bash configuration like so:

#!/bin/bash
# ~/.bashrc

PATH=$PATH:~/bin

Current Tools

A script that mimics the apachectl CLI on *nix systems. It currently only has start, stop, and restart as implemented options. Unlike the original apachectl, the user needs to specify a server to target, as the IBM i has multiple instances of Apache.

Use: apachectl.sh start|stop|restart <server>

e.g. apachectl.sh restart zendsvr6

A script that behaves like other SQL CLIs. The user can repeatedly run SQL statements until they enter exit or exit;. It even supports history, so the user can use the up and down arrows to cycle through past SQl statements.

Use: db2.sh

e.g. db2.sh

About

A collection of helpful and easy to install bash scripts for the IBM i.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages