#!/bin/bash [ -n "$1" ] && { php $(dirname $0)/enanobot.php $@ exit $? } while true; do php $(dirname $0)/enanobot.php [ x$? = x2 ] && break done &