#!/bin/bash cd $(dirname $0) if [ "$1" != "" -a "${1:0:1}" != "-" ]; then ip="@${1}" shift fi erl -name distributed_music_system_main_node${ip} -eval "dispatcher:start()." -noshell $@