#!/bin/bash
interface=$1
shift
prefix=$(dirname $BASH_SOURCE) 2>/dev/null
hostaddress=$(ifconfig $interface | sed -n 's/.*inet add\?r:\([^[:space:]]\+\).*/\1/p')
$prefix/bbatchdispatcher $(hostname) $hostaddress $*
