#!/bin/sh

if [ $# -lt 1 ] ; then
    echo "usage: bulbexec <command>"
    exit 1
fi

key="`hostname`-$$"

bulb --start $key "$*"

eval $*
retcode=$?

bulb --stop $key $retcode
exit $retcode
