#!/bin/bash # Get command to execute from filename COMMAND=$(basename "$0") # Send command to ectl ectl "$COMMAND" $@