#!/bin/sh BASEDIR=$(dirname $0) ruby $BASEDIR/main_interface_bot.rb > /dev/null 2>&1 & echo $! > $BASEDIR/.pid